Class Mongoid::Matchers::All
In: lib/mongoid/matchers/all.rb
Parent: Default

Checks that all values match.

Methods

matches?  

Public Instance methods

Return true if the attribute and first value in the hash are equal.

@example Do the values match?

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

@param [ Hash ] value The values to check.

@return [ true, false ] If the values match.

[Validate]