class Object

Public Instance Methods

count_bits(path) click to toggle source
# File lib/bits_count/irb_helper.rb, line 3
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