------_ extPart_001_01C5448D.792B9DCA
Content-Type: text/plain;
charset S-ASCII"
Content-Transfer-Encoding: quoted-printable
I'm trying to create a new object where the class of the object is
parameterized. My current solution is to use eval():
def create(class)
@obj = eval("#{class}.new()")
end
Is there a better way of doing this to avoid the hit of eval()?
Thanks,
-John
http://www.iunknown.com
------_ extPart_001_01C5448D.792B9DCA--