lib/mongo/uri/options_mapper.rb
def merge_uri_option(target, value, name)
        if target.key?(name)
          if REPEATABLE_OPTIONS.include?(name)
            target[name] += value
          else
            log_warn("Repeated option key: #{name}.")
          end
        else
          target.merge!(name => value)
        end
      end
# Merges a new option into the target.
#
# If the option exists at the target destination the merge will
# be an addition.
#
# Specifically required to append an additional tag set
# to the array of tag sets without overwriting the original.
#
# @param target [Hash] The destination.
# @param value [Object] The value to be merged.
# @param name [Symbol] The name of the option.
Merges a new option into the target.
If the option exists at the target destination the merge will
be an addition.

Specifically required to append an additional tag set
to the array of tag sets without overwriting the original.
Merges a new option into the target . If the option exists at the target destination the merge will be an addition . Specifically required to append an additional tag set to the array of tag sets without overwriting the original .
def merge_uri_option(target, value, name)
        if target.key?(name)
          if REPEATABLE_OPTIONS.include?(name)
            target[name] += value
          else
            log_warn("Repeated option key: #{name}.")
          end
        else
          target.merge!(name => value)
        end
      end
def merge_uri_option ( target , value , name ) if target . key? ( name ) if REPEATABLE_OPTIONS . include? ( name ) target [ name ] += value else log_warn ( "Repeated option key: #{name}." ) end else target . merge! ( name => value ) end end
Merges a new option into the target.
Merges a new option into the target .
target
None
value
The value to be merged.
The value to be merged .
name
The name of the option.
The name of the option .