lib/xot/bit_util.rb in xot-0.1.21 vs lib/xot/bit_util.rb in xot-0.1.22

- old
+ new

@@ -6,10 +6,10 @@ module BitUtil module_function - def bit (*bits) + def bit(*bits) return nil if bits.compact.empty? bits.reduce(0) {|value, nth| value | (0x1 << nth)} end end# BitUtil