From: "David A. Black" Date: 2007-09-27T18:12:16+09:00 Subject: Re: Syntax for .new ? Hi -- On Thu, 27 Sep 2007, 7stud -- 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. Module#const_get is indeed what you want. Object is just the receiver of the message in this particular case. #const_get is an instance method of Module. David -- Upcoming training from Ruby Power and Light, LLC: * Intro to Ruby on Rails, Edison, NJ, October 23-26 * Advancing with Rails, Edison, NJ, November 6-9 Both taught by David A. Black. See http://www.rubypal.com for more info!