Top Level Namespace
Defined Under Namespace
Modules: BitsCount
Instance Method Summary collapse
Instance Method Details
#count_bits(path) ⇒ Object
3 4 5 6 7 |
# 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 |