Sha256: 316b5cf3080dd920344d87cb46f4ca4ee353e9d3354b16f18ab04cc9bc8d98a7
Contents?: true
Size: 345 Bytes
Versions: 35
Compression:
Stored size: 345 Bytes
Contents
module Mongoid module Matcher # @api private module BitsAllSet 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 == condition end end end end
Version data entries
35 entries across 35 versions & 1 rubygems