Class: Functional::Inject
Direct Known Subclasses
Instance Attribute Summary collapse
-
#it ⇒ Object
readonly
Returns the value of attribute it.
Attributes inherited from Base
Instance Method Summary collapse
- #call(*a) ⇒ Object
- #end ⇒ Object
-
#initialize(start, *a, &e) ⇒ Inject
constructor
A new instance of Inject.
Methods inherited from Base
Constructor Details
#initialize(start, *a, &e) ⇒ Inject
133 134 135 136 |
# File 'lib/functional.rb', line 133 def initialize start, *a, &e super *a, &e @it = start end |
Instance Attribute Details
#it ⇒ Object (readonly)
Returns the value of attribute it.
132 133 134 |
# File 'lib/functional.rb', line 132 def it @it end |