gabriele renzi
10/23/2003 8:23:00 AM
il Thu, 23 Oct 2003 04:35:10 GMT, Carl Youngblood <carl@ycs.biz> ha
scritto::
>If I have a string that holds the name of a class that I want to
>instantiate, do I use eval to do that, or is there some better way?
a Better way:
>> class C ;end
=> nil
>> Object::const_get('C')
=> C