module Mongoid::Matcher::Ne
def matches?(exists, value, condition)
- Api: - private
Returns:
-
(true | false)
- Whether the value matches.
Parameters:
-
condition
(Object
) -- The $ne condition predicate. -
value
(Object
) -- The value to check. -
exists
(true | false
) -- Whether the value exists.
def matches?(exists, value, condition) BSON::Regexp::Raw ::InvalidQuery, "'$ne' operator does not allow Regexp arguments: #{Errors::InvalidQuery.truncate_expr(condition)}" s?(exists, value, condition, '$ne')