@@ -88,7 +88,7 @@ On MongoDB 2.4, an exception is only raised if the insert fails and the
8888.. _specify-decimal128:
8989
9090Specify a ``Decimal128`` number
91- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
91+ -------------------------------
9292
9393.. versionadded:: 3.4
9494
@@ -166,7 +166,7 @@ notation.
166166.. _ruby-driver-query-options:
167167
168168Query Options
169- ~~~~~~~~~~~~~
169+ -------------
170170
171171To add options to a query, chain the appropriate methods after the
172172``find`` method. Note that the underlying object, the ``Mongo::Collection::View``,
@@ -238,7 +238,7 @@ when querying and their corresponding methods as examples.
238238 client[:artists].find.sort(:name => -1)
239239
240240Additional Query Operations
241- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
241+ ---------------------------
242242
243243``count``
244244 Get the total number of documents an operation returns.
@@ -260,7 +260,7 @@ Additional Query Operations
260260 client[:artists].find.distinct(:name )
261261
262262Tailable Cursors
263- ~~~~~~~~~~~~~~~~
263+ ----------------
264264
265265For capped collections you may use a :manual:`tailable cursor
266266</core/tailable-cursors/>` that remains open
@@ -289,11 +289,11 @@ following code example shows how a tailable cursor might be used:
289289.. _ruby-driver-read-preference:
290290
291291Read Preference
292- ~~~~~~~~~~~~~~~
292+ ---------------
293293
294294Read preference determines the candidate :manual:`replica set</replication/>`
295295members to which a query or command can be sent. They consist of a **mode**
296- specified as a symbol, an array of hashes known as **tag_sets**,
296+ specified as a symbol, an array of hashes known as **tag_sets**,
297297the ``hedge`` option, which is a Hash specifying hedged read behavior, and two
298298timing options: **local_threshold** and **server_selection_timeout**.
299299
@@ -342,7 +342,7 @@ using the ``with`` method:
342342 artists.with(:read => { :mode => :primary_preferred }).find.to_a
343343
344344Mode
345- ~~~~
345+ ----
346346
347347There are five possible read preference modes: ``:primary``, ``:secondary``,
348348``:primary_preferred``, ``:secondary_preferred`` and``:nearest``.
@@ -360,7 +360,7 @@ Please see the :manual:`read preference documentation in the MongoDB Manual
360360 unchanged.
361361
362362Tag sets
363- ~~~~~~~~
363+ --------
364364
365365The ``tag_sets`` parameter is an ordered list of tag sets used to
366366restrict the eligibility of servers for selection, such as for data
@@ -380,7 +380,7 @@ the empty tag set is a subset of any tag set. This means the default
380380``tag_sets`` parameter ``[{}]`` matches all servers.
381381
382382Hedge
383- ~~~~~
383+ -----
384384
385385The ``hedge`` parameter is a Hash that specifies whether the server should use
386386hedged reads. With hedged reads, sharded clusters can route read operations to
@@ -485,7 +485,7 @@ the modification occurs.
485485 doc # Return the document before the update.
486486
487487Update Options
488- ~~~~~~~~~~~~~~
488+ --------------
489489
490490To add options to an update command, specify them as key-value pairs in the options
491491Hash argument.
@@ -583,7 +583,7 @@ Deleting
583583 result.deleted_count # Returns the number deleted.
584584
585585Delete Options
586- ~~~~~~~~~~~~~~
586+ --------------
587587
588588To add options to a delete command, specify them as key-value pairs in the
589589options Hash argument.
0 commit comments