Class instance creating with class name in variable Ruby
ruby
Solution
You could use `const_get`:
instance = Object.const_get(classname).new
instance.perform
Problem
I need to do something like that ``` class Foo define perform() puts 'hello' end end classname = 'Foo' instance = create_instance(classname) instance.perform(); ``` Is something like that possible. If is the how? Thanks a lot!