Paul Brannan
9/28/2007 2:50:00 PM
On Fri, Sep 28, 2007 at 09:20:01AM +0900, John Wells wrote:
> Guys,
>
> In a deep inheritance tree, is there an easy way to determine the
> origin or source (module, class) of a method?
Nodewrap can do it:
irb(main):001:0> require 'nodewrap'
=> false
irb(main):002:0> Hash.instance_method(:map).origin_class
=> Enumerable
Paul