From: Todd Benson Date: 2008-01-23T12:00:23+09:00 Subject: Re: Determine where a method is being called from? On Jan 22, 2008 4:47 PM, Ben Johnson wrote: > Is it possible to determine if a public instance method is being called > from an object or within the class? I think you might need to be a little more specific with your question. A class is also an object. irb(main):001:0> Class.ancestors -> [Class, Module, Object, Kernel] I don't think it's possible to grab a method's owner, because methods can be created in any context on the fly (somebody please correct me if I'm wrong). So, really what you are probably looking for is the binding scope. Just a thought, Todd