Class: Mongoid::Matchable::Eq
- Defined in:
- lib/mongoid/matchable/eq.rb
Overview
Performs equivalency checks.
Instance Attribute Summary
Attributes inherited from Default
Instance Method Summary collapse
-
#_matches?(value) ⇒ true, false
Return true if the attribute and first value are equal.
Methods inherited from Default
Constructor Details
This class inherits a constructor from Mongoid::Matchable::Default
Instance Method Details
#_matches?(value) ⇒ true, false
Return true if the attribute and first value are equal.
17 18 19 |
# File 'lib/mongoid/matchable/eq.rb', line 17 def _matches?(value) super(value.values.first) end |