Sha256: 1355bd00d387be003133d26af71c4d801b247b1934761ae584f8f6b339ea332a
Contents?: true
Size: 532 Bytes
Versions: 27
Compression:
Stored size: 532 Bytes
Contents
# encoding: utf-8 module Mongoid module Matchable # Performs less than or equal to matching. class Lte < Default # Return true if the attribute is less than or equal to the 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) determine(value, :<=) rescue ArgumentError false end end end end
Version data entries
27 entries across 27 versions & 2 rubygems