bite is a small library for processing 0/1 string.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
README.md
bite.gemspec

README.md

bite

bite is a small library for processing 0/1 string

usage

require 'bite'

Bite::toggle_bit('101', 2)
# => '100'

Bite::get_bits('101', 'abc')
# => ['a', 'c']

install

from gem: gem install bite