Sha256: 03d2c5ddfc64b50f955665cfb4a613aa4666351e97db80d910909d240ab352cd
Contents?: true
Size: 500 Bytes
Versions: 17
Compression:
Stored size: 500 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: module Matchers #:nodoc: # Performs not in checking. class Nin < Default # Return true if the attribute is not in the value list. # # @example Do the values match? # matcher.matches?({ :key => 10 }) # # @param [ Hash ] value The values to check. # # @return [ true, false ] If a value exists. def matches?(value) !value.values.first.include?(@attribute) end end end end
Version data entries
17 entries across 17 versions & 1 rubygems