# File lib/core/facets/bitmask.rb, line 14 def bit(bit) if bit < 0 mask = (1 << ~bit) self & ~mask else mask = (1 << bit) self | mask end end