Flowdock
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
   eval("param", b)           #=> 99
Show source
Register or log in to add new notes.