Thomas B. [2008-09-17 23:07]:
> Why complicate?
> 
> a=anything
> ec=class<<a;self;end
> a_=nil
> ObjectSpace.each_object(ec){|aa| a_=aa}
> a.equal?(a_) #=> true
thanks, absorbed ;-)

<http://prometheus.rubyforge.org/ruby-nuggets/classes/Object.html#M000085>

cheers
jens