class Mongoid::Matchable::Eq
Performs equivalency checks.
Public Instance Methods
_matches?(value)
click to toggle source
Return true if the attribute and first value are equal.
@example Do the values match?
matcher._matches?({ :key => 10 })
@param [ Hash ] value The values to check.
@return [ true, false ] True if matches, false if not.
Calls superclass method
Mongoid::Matchable::Default#_matches?
# File lib/mongoid/matchable/eq.rb, line 18 def _matches?(value) super(value.values.first) end