Method: Mongoid::Contextual::Mongo#length
- Defined in:
- lib/mongoid/contextual/mongo.rb
#length ⇒ Integer Also known as: size
Get’s the number of documents matching the query selector.
351 352 353 |
# File 'lib/mongoid/contextual/mongo.rb', line 351 def length @length ||= self.count end |