# File lib/mongoid/matchers/exists.rb, line 18 def matches?(value) @attribute.nil? != value.values.first end