Class: Functional::Reduce
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #call(*a) ⇒ Object
- #end ⇒ Object
-
#initialize(iv, *a, &e) ⇒ Reduce
constructor
A new instance of Reduce.
Methods inherited from Base
Constructor Details
#initialize(iv, *a, &e) ⇒ Reduce
Returns a new instance of Reduce.
158 159 160 161 162 |
# File 'lib/functional.rb', line 158 def initialize iv, *a, &e super *a, &e @buf = {} @buf.default = iv end |