RUBY-304 minor: doc fix
This commit is contained in:
parent
0abb2e64a9
commit
d44eb01da6
|
@ -302,8 +302,6 @@ module Mongo
|
||||||
# for DB#error.
|
# for DB#error.
|
||||||
#
|
#
|
||||||
# @raise [OperationFailure] when :safe mode fails.
|
# @raise [OperationFailure] when :safe mode fails.
|
||||||
#
|
|
||||||
# @see DB#remove for options that can be passed to :safe.
|
|
||||||
def save(doc, opts={})
|
def save(doc, opts={})
|
||||||
if doc.has_key?(:_id) || doc.has_key?('_id')
|
if doc.has_key?(:_id) || doc.has_key?('_id')
|
||||||
id = doc[:_id] || doc['_id']
|
id = doc[:_id] || doc['_id']
|
||||||
|
@ -335,8 +333,6 @@ module Mongo
|
||||||
# triggers a database assertion (as in a duplicate insert, for instance).
|
# triggers a database assertion (as in a duplicate insert, for instance).
|
||||||
# MongoDB v2.0+.
|
# MongoDB v2.0+.
|
||||||
#
|
#
|
||||||
# @see DB#remove for options that can be passed to :safe.
|
|
||||||
#
|
|
||||||
# @core insert insert-instance_method
|
# @core insert insert-instance_method
|
||||||
def insert(doc_or_docs, opts={})
|
def insert(doc_or_docs, opts={})
|
||||||
doc_or_docs = [doc_or_docs] unless doc_or_docs.is_a?(Array)
|
doc_or_docs = [doc_or_docs] unless doc_or_docs.is_a?(Array)
|
||||||
|
@ -372,8 +368,6 @@ module Mongo
|
||||||
# @raise [Mongo::OperationFailure] an exception will be raised iff safe mode is enabled
|
# @raise [Mongo::OperationFailure] an exception will be raised iff safe mode is enabled
|
||||||
# and the operation fails.
|
# and the operation fails.
|
||||||
#
|
#
|
||||||
# @see DB#remove for options that can be passed to :safe.
|
|
||||||
#
|
|
||||||
# @core remove remove-instance_method
|
# @core remove remove-instance_method
|
||||||
def remove(selector={}, opts={})
|
def remove(selector={}, opts={})
|
||||||
# Initial byte is 0.
|
# Initial byte is 0.
|
||||||
|
|
Loading…
Reference in New Issue