module Mongo::Operation::Limited
Adds behaviour for commands so ensure the limit option is always -1.
@since 2.0.0
Public Instance Methods
options()
click to toggle source
Limited
operations are commands that always require a limit of -1. In these cases we always overwrite the limit value.
@example Get the options.
limited.options
@return [ Hash ] The options with a -1 limit.
@since 2.0.0
Calls superclass method
# File lib/mongo/operation/limited.rb, line 32 def options super.merge(:limit => -1) end