From: Wilson Bilkovich Date: 2006-11-17T00:38:12+09:00 Subject: Re: Catching attr_accessor with set_trace_func On 11/16/06, Nobuyoshi Nakada wrote: > Hi, > > At Fri, 17 Nov 2006 00:01:43 +0900, > Wilson Bilkovich wrote in [ruby-talk:225298]: > > Given: > > @user.something.trace_me > > > > ..I am trying to 'unwind' the calling order, so that the 'trace_me' > > method can get a reference to @user and :something. > > I need to do this in a general way, where the name of the object > > (@user), and the last message it was sent (:something) are not known > > in advance. > > What do you expect when the receiver isn't assigned to any > variable? > Something indicating that would be fine. I don't need a handle on 'intermediate' objects, just ones that have a real lexical existence in source code.