Bitwise operations in Ruby, and an example application to testing with Rspec | Dark Hacker News