Default
Checks that all values match.
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.
# File lib/mongoid/matchers/all.rb, line 15 def matches?(value) @attribute == value.values.first end
Generated with the Darkfish Rdoc Generator 2.