Sha256: 92e20a87e1d248df26f9d4498d363b262fc0bc8c0c65af29446da35046dcfaf0
Contents?: true
Size: 336 Bytes
Versions: 35
Compression:
Stored size: 336 Bytes
Contents
module Mongoid module Matcher # @api private module BitsAnySet 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 > 0 end end end end
Version data entries
35 entries across 35 versions & 1 rubygems