Class: Kernel::Lambda::Function
Instance Method Summary collapse
-
#initialize(method) ⇒ Function
constructor
A new instance of Function.
- #to_proc ⇒ Object
Constructor Details
#initialize(method) ⇒ Function
Returns a new instance of Function.
54 55 56 |
# File 'lib/patch/lambda.rb', line 54 def initialize(method) @method = method end |
Instance Method Details
#to_proc ⇒ Object
58 59 60 |
# File 'lib/patch/lambda.rb', line 58 def to_proc @method.to_proc end |