class TTFunk::Aggregate
Base class for different aggregate values and accumulators.
@see TTFunk::Min
@see TTFunk::Max
@see TTFunk::Sum
Private Instance Methods
Source
# File lib/ttfunk/aggregate.rb, line 12 def coerce(other) if other.respond_to?(:value_or) other.value_or(0) else other end end