exposeObject

open fun exposeObject(name: String, object: <Error class: unknown class>)

Add @object to the @builder object pool so it can be referenced just like any other object built by builder.

Parameters

name

the name of the object exposed to the builder

object

the object to expose