From: Wilson Bilkovich Date: 2006-11-17T00:01:43+09:00 Subject: Re: Catching attr_accessor with set_trace_func On 11/16/06, Nobuyoshi Nakada wrote: > Hi, > > At Thu, 16 Nov 2006 16:52:07 +0900, > Nobuyoshi Nakada wrote in [ruby-talk:225257]: > > --- eval.c 7 Nov 2006 09:38:12 -0000 1.958 > > +++ eval.c 16 Nov 2006 07:32:05 -0000 > > Sorry, it was wrong. > Thank you. That explains why it wasn't traceable. While I have you here, perhaps you have an idea about the problem I am trying to solve. 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. Is set_trace_func the only way to do that? Kernel#caller doesn't seem like enough.