class BSON::Document
def merge(other, &block)
- Since: - 3.0.0
Returns:
-
(BSON::Document)
- The result of the merge.
Parameters:
-
other
(BSON::Document, Hash
) -- The document/hash to merge with.
Other tags:
- Example: Merge with another document. -
def merge(other, &block) dup.merge!(other, &block) end