Hi,

In message "[ruby-talk:03697] Caller's class or object"
    on 00/06/29, hal9000 / hypermetrics.com <hal9000 / hypermetrics.com> writes:

|But suppose I was called by method "foo" -- is there any way to tell
|where foo is defined? It could be a method of some class, a singleton
|method of some object, a method in a module,...

No, there's no way to retrieve where a method is defined, even current
method.  Binding of caller can be retrieved using trace_func(), but
it's definitely a performance penalty.

							matz.