Class: 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.
52 53 54 |
# File 'lib/patch/lambda.rb', line 52 def initialize(method) @method = method end |
Instance Method Details
#to_proc ⇒ Object
56 57 58 |
# File 'lib/patch/lambda.rb', line 56 def to_proc @method.to_proc end |