Method: Mongoid::Contextual::Mongo#skip

Defined in:
lib/mongoid/contextual/mongo.rb

#skip(value) ⇒ Mongo

Skips the provided number of documents.

Examples:

Skip the documents.

context.skip(20)

Parameters:

  • value (Integer)

    The number of documents to skip.

Returns:

  • (Mongo)

    The context.

Since:

  • 3.0.0



423
424
425
# File 'lib/mongoid/contextual/mongo.rb', line 423

def skip(value)
  @view = view.skip(value) and self
end