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.



10
11
12
# File 'lib/funtools/composition.rb', line 10

def *(f)
  to_proc * f
end