On 9/26/07, 7stud -- <dolgun / excite.com> wrote:
> Sebastian Hungerecker wrote:
> >
> > Object.const_get(klass).new
> >
>
> I can't find any documentation for Object.const_get. ri reveals nothing
> and pickaxe2 doesn't have anything for Object.const_get, although it
> does list something for Module#const_get.  pickaxe2 says that Object
> mixes in Kernel, but I can't find anything for Kernel.const_get either.
> --
> Posted via http://www.ruby-forum.com/.
>
>

Kernel is a module, so it gets the Module instance methods, and Object
(and thus all objects) mix in Kernel, so they have const_get.  The
Module<->Class<->Object<->Kernel quartet is pretty magic in Ruby.
-- 
Chris Carter
concentrationstudios.com
brynmawrcs.com