From: Sheldon Hearn Date: 2012-08-11T00:13:03+09:00 Subject: [ruby-core:47114] Re: Access to calling object with __caller__ On Fri, Aug 10, 2012 at 4:14 PM, Sheldon Hearn wrote: > Is there any work underway to make the calling object available inside > a method as __caller__, as per the sender gem[1]? Oops, I meant __sender__ and didn't actually provide a reference for the gem. I'm not interested in the calling method, but rather the calling object. Regrettably, that gem seems to have fallen victim to the hiding of the ruby_current_thread symbol some time ago[2]. Anyway, I'd much rather see this natively in Ruby. Thanks, Sheldon. [1] https://github.com/Asher-/sender [2] https://github.com/Asher-/sender/issues/4