Class Mongoid::Matchers::Exists
In: lib/mongoid/matchers/exists.rb
Parent: Default

Checks for existance.

Methods

matches?  

Public Instance methods

Return true if the attribute exists and checking for existence or return true if the attribute does not exist and checking for non-existence.

@example Does anything exist?

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

@param [ Hash ] value The values to check.

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

[Validate]