From: Paul Brannan Date: 2005-07-15T00:38:16+09:00 Subject: Re: class of function On Sat, Jul 09, 2005 at 08:00:47AM +0900, Daniel Sch?le wrote: > how to get the class of the function y? > or object_id for example? Not sure exactly what you want, but using the latest nodewrap from cvs: irb(main):001:0> def y; 1; end => nil irb(main):002:0> method(:y).origin_class => Object irb(main):003:0> class Foo; def y; end; end => nil irb(main):004:0> Foo.new.method(:y).origin_class => Foo Paul