Simple Bitmask in Ruby