Class: Symbol
Overview
Extends the Symbol class for functional programming patterns.
Instance Method Summary collapse
-
#with(*args, &block) ⇒ Proc
Creates a Proc that functions as a curried instance method for objects It is possible to supply a block (to the instance method) for later use.
Instance Method Details
#with(*args, &block) ⇒ Proc
Creates a Proc that functions as a curried instance method for objects It is possible to supply a block (to the instance method) for later use. This method allows for partial application of instance methods.
315 316 317 |
# File 'lib/patch/foobar.rb', line 315 def with(*args, &block) ->(o, *more) { o.send(self, *args, *more, &block) } end |