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.4.6 lib/mongomodel/support/core_extensions.rb
mongomodel-0.4.5 lib/mongomodel/support/core_extensions.rb
mongomodel-0.4.4 lib/mongomodel/support/core_extensions.rb
mongomodel-0.4.3 lib/mongomodel/support/core_extensions.rb
mongomodel-0.4.2 lib/mongomodel/support/core_extensions.rb
mongomodel-0.4.1 lib/mongomodel/support/core_extensions.rb
mongomodel-0.4.0 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.6 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.5 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.4 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.3 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.2 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.1 lib/mongomodel/support/core_extensions.rb
mongomodel-0.3.0 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.20 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.19 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.18 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.17 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.16 lib/mongomodel/support/core_extensions.rb
mongomodel-0.2.15 lib/mongomodel/support/core_extensions.rb