From: "cedric.ch" Date: 2006-12-27T09:00:06+09:00 Subject: Re: Object creation with a "variable classname" James Britt a �crit : > 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 Wow ! Thank you.