Class: Proc

Inherits:
Object show all
Defined in:
lib/funtools/composition.rb

Instance Method Summary collapse

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