Method: Memory::Aggregate#initialize
- Defined in:
- lib/memory/aggregate.rb
#initialize(title, &block) ⇒ Aggregate
Returns a new instance of Aggregate.
64 65 66 67 68 69 70 |
# File 'lib/memory/aggregate.rb', line 64 def initialize(title, &block) @title = title @metric = block @total = Total.new @totals = Hash.new{|h,k| h[k] = Total.new} end |