Sha256: 8a65a6c3e7b3e583159c94d1a1870d18d97bbb43a2a2ddb056a15e1a7579cac5

Contents?: true

Size: 391 Bytes

Versions: 24

Compression:

Stored size: 391 Bytes

Contents

class Boolean < TrueClass; end

class Symbol
  [:lt, :lte, :gt, :gte, :ne, :in, :nin, :mod, :all, :size, :exists, :near].each do |operator|
    define_method(operator) { MongoModel::MongoOperator.new(self, operator) }
  end
  
  define_method(:asc) { MongoModel::MongoOrder::Clause.new(self, :ascending) }
  define_method(:desc) { MongoModel::MongoOrder::Clause.new(self, :descending) }
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
mongomodel-0.2.14 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.13 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.12 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.11 lib/mongomodel/support/core_extensions.rb