From: Robert Dober Date: 2007-08-03T22:41:22+09:00 Subject: Re: Getting the 'Sender' or 'Caller' object of a method On 8/3/07, Peter Laurens wrote: > Hi, > > I am not having much luck in finding out how to get the calling object > of a method. > > Is there an implicit way that a method can get a pointer to the object > that called it, or do I have to write that explicitly, manually > including a 'sender' parameter for the method call myself? > > I have looked at 'caller' but can only coax a string out of it. > > Thanks in advance for your kind help! > > - Nex > -- > Posted via http://www.ruby-forum.com/. > > Hmm maybe binding_of_caller might help, as far as I know Facet implements it, and Why did so too, maybe just google it, I would not know which one to recommend. HTH Robert -- [...] as simple as possible, but no simpler. -- Attributed to Albert Einstein