method

merge!

v2_6_3 - Show latest stable - Class: URI::Generic
merge!(oth)
public

Args

oth

URI or String

Description

Destructive form of #merge.

Usage

require 'uri'

uri = URI.parse("http://my.example.com")
uri.merge!("/main.rbx?page=1")
uri.to_s  # => "http://my.example.com/main.rbx?page=1"