Sha256: ec7016c0f5453c4f4f9418ed11ea7eb477ad794f8d04257aadf61136d30e4bf4
Contents?: true
Size: 489 Bytes
Versions: 27
Compression:
Stored size: 489 Bytes
Contents
# encoding: utf-8 module Mongoid module Matchable # Performs size checking. class Size < Default # Return true if the attribute size is equal to the first value. # # @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) @attribute.size == value.values.first end end end end
Version data entries
27 entries across 27 versions & 2 rubygems