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