From: Ben Lovell Date: 2009-05-26T02:22:27+09:00 Subject: Re: dynamic object creation --001636c5a43573226d046abfda88 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Mon, May 25, 2009 at 5:58 PM, Ken Tyler 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 --001636c5a43573226d046abfda88--