Sha256: 1a824b70e5cb855eec4765de601ebaccb882db54e1695ea92ba38e5c80330660
Contents?: true
Size: 486 Bytes
Versions: 32
Compression:
Stored size: 486 Bytes
Contents
# encoding: utf-8 module Mongoid module Matchers # 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
32 entries across 32 versions & 2 rubygems