Sha256: 5b6f03b86957fbd7e25d0288277eefa661429c5096d1d71a9f4a6fa773e36387
Contents?: true
Size: 525 Bytes
Versions: 13
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true # 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 ] True if matches, false if not. def _matches?(value) !super(value.values.first) end end end end
Version data entries
13 entries across 13 versions & 2 rubygems