From: John Lam Date: 2005-04-19T12:09:46+09:00 Subject: Dynamic object construction ------_=_NextPart_001_01C5448D.792B9DCA Content-Type: text/plain; charset="US-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(): =20 def create(class) @obj =3D eval("#{class}.new()") end =20 Is there a better way of doing this to avoid the hit of eval()? =20 Thanks, -John http://www.iunknown.com =20 =20 ------_=_NextPart_001_01C5448D.792B9DCA--