Binding of caller in Ruby 1.9

Does anybody know of a way to get access in Ruby 1.9 to the binding of
the caller of the function that’s currently executing?

–Ken

On Fri, Apr 11, 2008 at 08:40:08AM +0900, Ken B. wrote:

Does anybody know of a way to get access in Ruby 1.9 to the binding of
the caller of the function that’s currently executing?

Pass it in explicitly:

foo(arg1, arg2, binding)

Being able to get the binding of the caller prevents desirable
optimizations.

Paul