Module: MongoScope::ScopeMethods
- Included in:
- ScopedCollection
- Defined in:
- lib/mongo_scope.rb
Instance Method Summary collapse
Instance Method Details
#raw_scope(ops) ⇒ Object
22 23 24 |
# File 'lib/mongo_scope.rb', line 22 def raw_scope(ops) ScopedCollection.new(ops,self) end |
#scope_eq(ops) ⇒ Object
25 26 27 28 |
# File 'lib/mongo_scope.rb', line 25 def scope_eq(ops) scope_ops = {:field => ops.keys.first, :val => ops.values.first} ScopedCollection.new(EqScope.new(scope_ops),self) end |