From: Robert Klemme Date: 2009-03-29T22:54:57+09:00 Subject: Re: Dynamic object creation in ruby On 29.03.2009 13:40, Brian Candler wrote: >> frank = Object.const_get("Master::Person").new("Frank") >> >> Does anyone know why the second way fails? > > frank = Master.const_get("Person").new("Frank") Erm, that's a hybrid solution. If you know the names beforehand, you can just do frank = Master::Person.new "Frank" I would assume that the OP receives the full qualified name as a String and wants to get the class from there which can only be achieved with any of the other solutions shown. Cheers robert