Sha256: c6186e06f0825fa6d42d9076b4e374186b32650e1698784616d5d0ad278f13eb
Contents?: true
Size: 340 Bytes
Versions: 30
Compression:
Stored size: 340 Bytes
Contents
module Mongoid module Matcher # @api private module BitsAllClear include Bits extend self def array_matches?(value, condition) condition.all? do |c| value & (1<<c) == 0 end end def int_matches?(value, condition) value & condition == 0 end end end end
Version data entries
30 entries across 30 versions & 1 rubygems