lib/ttfunk/sum.rb in ttfunk-1.6.2.1 vs lib/ttfunk/sum.rb in ttfunk-1.7.0
- old
+ new
@@ -3,9 +3,10 @@
module TTFunk
class Sum < Aggregate
attr_reader :value
def initialize(init_value = 0)
+ super()
@value = init_value
end
def <<(operand)
@value += coerce(operand)