Is there a way in Ruby to take a symbol or string and turn it into a class of the same name?
For instance, if I have a class such as
puts "Hi, I'm bob"
b = :Bob.new
There are many ways to do this. Your lack of context makes it impossible to elect a "best" way. Here's a few ayways.
Kernel.const_get(:Bob) eval(:Bob.to_s) Kernel.const_get(:bob.to_s.capitalize)