Class: EnumerableOperator::Sum
- Includes:
- Enumerable
- Defined in:
- lib/agents/sets/enum/op.rb
Instance Attribute Summary collapse
-
#summands ⇒ Object
readonly
Returns the value of attribute summands.
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(*summands) ⇒ Sum
constructor
A new instance of Sum.
- #size ⇒ Object
Methods included from Enumerable
#each_cluster, #each_with_neighbors, #group, nest, #nest, #pipe
Constructor Details
#initialize(*summands) ⇒ Sum
Returns a new instance of Sum.
39 40 41 |
# File 'lib/agents/sets/enum/op.rb', line 39 def initialize(*summands) @summands = summands end |
Instance Attribute Details
#summands ⇒ Object (readonly)
Returns the value of attribute summands.
37 38 39 |
# File 'lib/agents/sets/enum/op.rb', line 37 def summands @summands end |