Performs matching for any value in an array.
Return true if the attribute is in the values.
@example Do the values match?
matcher.matches?({ :key => 10 })
@param [ Hash ] value The values to check.
@return [ true, false ] If a value exists.
# File lib/mongoid/matchers/in.rb, line 15 def matches?(value) Array.wrap(@attribute).any? { |e| value.values.first.include?(e) } end
Generated with the Darkfish Rdoc Generator 2.