Ben Lovell
5/25/2009 5:22:00 PM
[Note: parts of this message were removed to make it a legal post.]
On Mon, May 25, 2009 at 5:58 PM, Ken Tyler <ken@8thfold.com> wrote:
> sorry if i've missed something obvious
>
> is there a way in ruby to dynamically create an object from a variable
> that holds the object's name?
>
> something that does object.create("some_object_name")
>
Try:
Kernel.const_get("some_object_name")
--
Regards,
Ben