From: Ilmari Heikkinen Date: 2005-04-30T05:12:17+09:00 Subject: Re: Creating arbitrary objects On 29.4.2005, at 22:50, Mark Hubbart wrote: > Also, the OP might look at #allocate. #allocate never needs arguments, > #new might fail without arguments. Of course, allocate doesn't > initialize... > > klass = "Array" > Object.const_get(klass).allocate #==> [] > > cheers, > Mark > Whoah, how did this escape me for so long!? #allocate Awesome, this'll let me abuse classes in a whole new fashion *cue evil laughter echoing from the depths of a dark forest* Thanks a million for the insight, Ilmari