Sha256: 85d8086ad9b0238d4058aa53df695f9ccdb0513025f08de61c737ef87b58a218

Contents?: true

Size: 480 Bytes

Versions: 188

Compression:

Stored size: 480 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Matchers #:nodoc:

    # Performs less than matching.
    class Lt < Default

      # Return true if the attribute is less 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, :<)
      end
    end
  end
end

Version data entries

188 entries across 96 versions & 4 rubygems

Version Path
mongoid-2.1.7 lib/mongoid/matchers/lt.rb
mongoid-2.1.6 lib/mongoid/matchers/lt.rb
mongoid-2.1.5 lib/mongoid/matchers/lt.rb
mongoid-2.1.4 lib/mongoid/matchers/lt.rb
mongoid-2.1.3 lib/mongoid/matchers/lt.rb
mongoid-2.1.2 lib/mongoid/matchers/lt.rb
mongoid-2.1.1 lib/mongoid/matchers/lt.rb
mongoid-2.1.0 lib/mongoid/matchers/lt.rb