From: David Naseby Date: 2005-05-16T10:05:12+09:00 Subject: Re: Class.forName ? On 5/16/05, baalbek wrote: > In Java there is a construct like this: > > Class clazz = Class.forName("Person"); > irb(main):001:0> class A; def initialize; puts 'in A'; end; end => nil irb(main):002:0> a = eval("A.new") in A => # irb(main):003:0> a = Module.const_get("A").new in A => # Lots of other ways, I'm sure. -- David Naseby http://homepages.ihug.com.au/~naseby/