From: James Britt Date: 2006-12-27T08:52:15+09:00 Subject: Re: Object creation with a "variable classname" cedric.ch wrote: > Hi, > > I would to know if it is possible to do something like that: > > def create_object(class_name) > my_object = **class_name**.new > end > > I tried with class.new(&class_name) x = Object.const_get( class_name ).new -- James Britt "Inside every large system there's a small system trying to get out". - Chet Hendrickson