Sha256: 36b1fad668fb768953f23411f40d8042fde343e4629bc69cc978659a523e31fb

Contents?: true

Size: 279 Bytes

Versions: 5

Compression:

Stored size: 279 Bytes

Contents

# encoding: utf-8
module Mongoid #:nodoc:
  module Matchers #:nodoc:
    class Gte < Default
      # Return true if the attribute is greater than or equal to the value.
      def matches?(value)
        @attribute ? @attribute >= first(value) : false
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-1.1.4 lib/mongoid/matchers/gte.rb
mongoid-1.1.3 lib/mongoid/matchers/gte.rb
mongoid-1.1.2 lib/mongoid/matchers/gte.rb
mongoid-1.1.1 lib/mongoid/matchers/gte.rb
mongoid-1.1.0 lib/mongoid/matchers/gte.rb