On Thu, 27 Sep 2007 06:32:10 +0900, Sebastian Hungerecker <sepp2k / googlemail.com> 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