Sha256: c27393fe2af0407f41f8a96b09d532e8fa1e0ba6e5af451fea5fcf2f1ccb543a

Contents?: true

Size: 489 Bytes

Versions: 35

Compression:

Stored size: 489 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, :<=)
      end
    end
  end
end

Version data entries

35 entries across 32 versions & 6 rubygems

Version Path
mongoid-5.4.1 lib/mongoid/matchable/lte.rb
mongoid-5.4.0 lib/mongoid/matchable/lte.rb
mongoid-5.2.1 lib/mongoid/matchable/lte.rb
mongoid-5.2.0 lib/mongoid/matchable/lte.rb
mongoid-5.2.0.rc0 lib/mongoid/matchable/lte.rb
mongoid-5.1.6 lib/mongoid/matchable/lte.rb
mongoid-5.1.5 lib/mongoid/matchable/lte.rb
mongoid-5.1.4 lib/mongoid/matchable/lte.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/lib/mongoid/matchable/lte.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-5.1.3/lib/mongoid/matchable/lte.rb
mongoid-5.1.3 lib/mongoid/matchable/lte.rb
mongoid-5.1.2 lib/mongoid/matchable/lte.rb
mongoid-5.1.1 lib/mongoid/matchable/lte.rb
mongoid-5.1.0 lib/mongoid/matchable/lte.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.1/lib/mongoid/matchable/lte.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongoid-5.0.2/lib/mongoid/matchable/lte.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.2/lib/mongoid/matchable/lte.rb
mongoid-5.0.2 lib/mongoid/matchable/lte.rb
mongoid-5.0.1 lib/mongoid/matchable/lte.rb
mongoid-5.0.0 lib/mongoid/matchable/lte.rb