Sha256: df8cc7a8e7cf64bf90ef1005ee51f7a5c94b7bc931fd91071b3b86ddf0420889

Contents?: true

Size: 233 Bytes

Versions: 6

Compression:

Stored size: 233 Bytes

Contents

require 'rubygems'
require 'shoulda'
require 'onfire'

class Onfire::EventTable
  def size
    source2evt.inject(0)do |memo, evts| 
      memo + evts[1].inject(0) {|sum, h| sum + h[1].size} # h => [key, value].
    end || 0
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
onfire-0.1.2 test/test_helper.rb
onfire-0.1.1 test/test_helper.rb
nilclass-onfire-0.1.3.nc test/test_helper.rb
nilclass-onfire-0.1.2.nc test/test_helper.rb
nilclass-onfire-0.1.1.nc test/test_helper.rb
onfire-0.1.0 test/test_helper.rb