Class | Mongoid::Matchers::Default |
In: |
lib/mongoid/matchers/default.rb
|
Parent: | Object |
Contains all the default behavior for checking for matching documents given MongoDB expressions.
attribute | [RW] | |
document | [RW] |
Return true if the attribute and value are equal, or if it is an array if the value is included.
@example Does this value match?
default.matches?("value")
@param [ Object ] value The value to check if it matches.
@return [ true, false ] True if matches, false if not.
@since 1.0.0
If object exists then compare the two, otherwise return false
@example Determine if we can compare.
matcher.determine("test", "$in")
@param [ Object ] value The value to compare with. @param [ Symbol, String ] operator The comparison operation.
@return [ true, false ] The comparison or false.
@since 1.0.0