method

binding

v2_6_3 - Show latest stable - Class: Proc
binding()
public

Returns the binding associated with prc.

def fred(param)
  proc {}
end

b = fred(99)
eval("param", b.binding)   #=> 99