lib/mongo/collection/view/readable.rb
# If called without arguments or with a nil argument, returns
# the legacy (OP_QUERY) server modifiers for the current view.
# If called with a non-nil argument, which must be a Hash or a
# subclass, merges the provided modifiers into the current view.
# Both string and symbol keys are allowed in the input hash.
#
# @example Set the modifiers document.
#   view.modifiers(:$orderby => Mongo::Index::ASCENDING)
#
# @param [ Hash ] doc The modifiers document.
#
# @return [ Hash, View ] Either the modifiers document or a new +View+.
#
# @since 2.1.0
If called without arguments or with a nil argument, returns
the legacy (OP_QUERY) server modifiers for the current view.
If called with a non-nil argument, which must be a Hash or a
subclass, merges the provided modifiers into the current view.
Both string and symbol keys are allowed in the input hash.
If called without arguments or with a nil argument returns the legacy ( OP_QUERY ) server modifiers for the current view . If called with a non - nil argument which must be a Hash or a subclass merges the provided modifiers into the current view . Both string and symbol keys are allowed in the input hash .
def modifiers(doc = nil)
          if doc.nil?
            Operation::Find::Builder::Modifiers.map_server_modifiers(options)
          else
            new(options.merge(Operation::Find::Builder::Modifiers.map_driver_options(BSON::Document.new(doc))))
          end
        end
def modifiers ( doc = nil ) if doc . nil? Operation :: Find :: Builder :: Modifiers . map_server_modifiers ( options ) else new ( options . merge ( Operation :: Find :: Builder :: Modifiers . map_driver_options ( BSON :: Document . new ( doc ) ) ) ) end end
If called without arguments or with a nil argument, returns
the legacy (OP_QUERY) server modifiers for the current view.
If called without arguments or with a nil argument returns the legacy ( OP_QUERY ) server modifiers for the current view .
Either the modifiers document or a new +View+.
Either the modifiers document or a new + View + .
 Hash, View 
doc
<not_specific>
<not_specific>
doc The modifiers document.
doc The modifiers document .
example
Set the modifiers document. view.modifiers(:$orderby => Mongo::Index::ASCENDING)
Set the modifiers document . view . modifiers ( : $orderby = > Mongo :: Index :: ASCENDING )
since
None