Sha256: 00e4fdd45f018512babb7ad23cdd284639ab5989e3124e1ab5acb207b411eb4f
Contents?: true
Size: 569 Bytes
Versions: 13
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Matchable # Performs Greater than or equal to matching. class Gte < Default # Return true if the attribute is greater 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