On 5/16/05, baalbek <> wrote:
> In Java there is a construct like this:
>=20
> Class clazz =3D Class.forName("Person");
>=20
irb(main):001:0> class A; def initialize; puts 'in A'; end; end
=3D> nil
irb(main):002:0> a =3D eval("A.new")
in A
=3D> #<A:0x2ad3400>
irb(main):003:0> a =3D Module.const_get("A").new
in A
=3D> #<A:0x2ad02c8>
Lots of other ways, I'm sure.
--=20
David Naseby
http://homepages.ihug.com.au/~naseby/