In Ruby, class names are constants, so you can do
str = "Thing" #=> "Thing"
Kernel.const_get(str) #=> Thing
Posted by Sandheep to Sandheep's deck (2013-04-25 14:19)
In Ruby, class names are constants, so you can do
str = "Thing" #=> "Thing"
Kernel.const_get(str) #=> Thing