module Mongoid::Matcher::Eq

In-memory matcher for $eq expression.

@see www.mongodb.com/docs/manual/reference/operator/query/eq/

@api private

Public Instance Methods

matches?(exists, value, condition) click to toggle source

Returns whether a value satisfies an $eq expression.

@param [ true | false ] exists Whether the value exists. @param [ Object ] value The value to check. @param [ Hash ] expr The $eq condition predicate.

@return [ true | false ] Whether the value matches.

@api private

# File lib/mongoid/matcher/eq.rb, line 21
                def matches?(exists, value, condition)
  EqImpl.matches?(exists, value, condition, '$eq')
end