From: Ilias Lazaridis Date: 2011-05-30T18:05:29+09:00 Subject: Re: CORE - Object Instantiation and Location On 30 Μάϊος, 11:06, Jesús Gabriel y Galán wrote: > On Mon, May 30, 2011 at 9:55 AM, Ilias Lazaridis wrote: [...] > > for "class:MyClass' > > > obj = Kernel.const_get("MyClass") #=> returns object which represents > > MyClass > > > for "main"? > > > How can I retrieve the "main" object? [...] >     eval 'self', TOPLEVEL_BINDING [...] Very nice, this works fine! . -- http://lazaridis.com