Re: Dumb reflection problem - create object from String

require ‘facet/kernel/constant’

myExampleClassInstance = constant(‘MyExampleClass’).new

T.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs