itsme213 wrote:

> Is there a way to give a name to the class? My code generation uses the
> class name. I tried assigning it to a constant but get an error:
>     "dynamic constant assignment"

Yup, via Object.const_set("Foo", Class.new).