Class: Method

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

Instance Method Summary collapse

Instance Method Details

#*(f) ⇒ Object

Public: Compose a Method.

f - Method, Proc or Symbol describing a Proc to compose with the current

method.

Returns a composed Proc.



8
9
10
# File 'lib/funtools/composition.rb', line 8

def *(f)
  to_proc * f
end