Sha256: 83ac0fc8386b962a2833c01debeeeb01fe126ac4471d3aaf897207e15a212572
Contents?: true
Size: 563 Bytes
Versions: 13
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true # 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
13 entries across 13 versions & 2 rubygems