Class: Proc
Instance Method Summary collapse
-
#*(f) ⇒ Object
Public: Compose a Proc.
Instance Method Details
#*(f) ⇒ Object
Public: Compose a Proc.
f - Method, Proc or Symbol describing a Proc to compose with the current
Proc.
Returns a composed Proc.
20 21 22 |
# File 'lib/funtools/composition.rb', line 20 def *(f) ->(*n) { self[f.to_proc[*n]] } end |