class Mongoid::Matchable::Ne

Performs non-equivalency checks.

Public Instance Methods

matches?(value) click to toggle source

Return true if the attribute and first value are not equal.

@example Do the values match?

matcher.matches?({ :key => 10 })

@param [ Hash ] value The values to check.

@return [ true, false ] If a value exists.

Calls superclass method Mongoid::Matchable::Default#matches?
# File lib/mongoid/matchable/ne.rb, line 15
def matches?(value)
  !super(value.values.first)
end