Module: Curriable

Included in:
Method, Proc
Defined in:
lib/curry.rb

Overview

Provides a curry method that can be mixed in to classes that make sense with currying. Depends on self implementing a call method.

Instance Method Summary collapse

Instance Method Details

#curry(*spice) ⇒ Object

call-seq:

curriable.curry(*spice) -> #<Curry...>

Create a new curried proc from this curriable, using the supplied spice.



274
275
276
# File 'lib/curry.rb', line 274

def curry(*spice)
  Curry.new(self, *spice)
end