Sha256: 68da1cbdac66e5f69616b845420939da18482d7a4a9582305ab929a945f1bfdd
Contents?: true
Size: 480 Bytes
Versions: 42
Compression:
Stored size: 480 Bytes
Contents
# encoding: utf-8 module Mongoid module Matchable # Performs non-equivalency checks. class Ne < Default # Return true if the attribute and first value are not equal. # # @example Do the values match? # matcher.matches?({ :key => 10 }) # # @param [ Hash ] value The values to check. # # @return [ true, false ] If a value exists. def matches?(value) !super(value.values.first) end end end end
Version data entries
42 entries across 38 versions & 3 rubygems