Sha256: 8919d8a98a66bc3fd9f04643827dd89c6cef63c4f16653dc974086dcd2290a0a

Contents?: true

Size: 195 Bytes

Versions: 1

Compression:

Stored size: 195 Bytes

Contents

require 'bits_count'

def count_bits path
  stats = BitsCount::File.bits_count(path)
  puts "found %d bits set to 1"%[stats[:bit1_count]]
  puts "found %d bits set to 0"%[stats[:bit0_count]]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bits_count-0.0.1 lib/bits_count/irb_helper.rb