Sha256: f849479da50ab1bc9048228728fcc20fec4d3d0d90c19e11ee44e30e9e7eb6e0
Contents?: true
Size: 318 Bytes
Versions: 3
Compression:
Stored size: 318 Bytes
Contents
require 'tailstrom/counter' module Tailstrom class CounterCollection def initialize @counters = Hash.new {|h, k| h[k] = Counter.new } end def clear @counters.values.each(&:clear) end def [](key) @counters[key] end def empty? @counters.empty? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tailstrom-0.0.3 | lib/tailstrom/counter_collection.rb |
tailstrom-0.0.2 | lib/tailstrom/counter_collection.rb |
tailstrom-0.0.1 | lib/tailstrom/counter_collection.rb |