method

merge!

v1_8_7_72 - 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")
  p uri
  # =>  #<URI::HTTP:0x2021f3b0 URL:http://my.example.com/main.rbx?page=1>