R
rpardee
Hey All,
If I have the name of a class in a string var, is it possible to get a
new instance of that class (and if so, how)? The following do *not*
work:
my_string = "Hash"
my_object = Class(my_string)
my_object = Class.new(my_string)
my_object = Object.new(my_string)
Thanks!
-Roy
If I have the name of a class in a string var, is it possible to get a
new instance of that class (and if so, how)? The following do *not*
work:
my_string = "Hash"
my_object = Class(my_string)
my_object = Class.new(my_string)
my_object = Object.new(my_string)
Thanks!
-Roy