From: MenTaLguY Date: 2007-09-27T06:39:15+09:00 Subject: Re: Syntax for .new ? On Thu, 27 Sep 2007 06:32:10 +0900, Sebastian Hungerecker wrote: > Object.const_get(klass) Note that this only works for top-level classes; "Foo", but not "Bar::Baz". The general way to obtain class objects by name is this: name.split("::").inject(Object) { |c, n| c.const_get(n) } -mental