method
binding
v1_9_1_378 -
Show latest stable
- Class:
Proc
binding()public
Returns the binding associated with prc. Note that Kernel#eval accepts either a Proc or a Binding object as its second parameter.
def fred(param) proc {} end b = fred(99) eval("param", b.binding) #=> 99