From: ara.t.howard@... Date: 2007-02-14T07:02:58+09:00 Subject: Re: Dynamically determining a class' namespace On Wed, 14 Feb 2007, Tim Pease wrote: >> > Not quite what Mr. Berger is after here. >> > >> > He wants to know the nesting where the Foo object was created not the >> > nesting of the Foo class itself. i.e. whenever Foo.new is called, >> > what is the namespace where it was called. >> > >> > Frankly, I'm stumped. >> > >> >> harp:~ > cat a.rb >> require 'binding_of_caller' >> > > Okay, Ara is there any problem that you have not already solved ;) > > TwP > gotta give credit where it's due: that's florian's work. -a -- we can deny everything, except that we have the possibility of being better. simply reflect on that. - the dalai lama