Sha256: 95945c8a9bf627926cff2897b4f59607dea5f99fc0cfce4f059062b77c166f25
Contents?: true
Size: 543 Bytes
Versions: 13
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true # encoding: utf-8 module Mongoid module Matchable # Performs Greater Than matching. class Gt < Default # Return true if the attribute is greater than 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