method

merge

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

Args

oth:URI or String

Description

Merges two URI's.

Usage

  require 'uri'

  uri = URI.parse("http://my.example.com")
  p uri.merge("/main.rbx?page=1")
  # =>  #<URI::HTTP:0x2021f3b0 URL:http://my.example.com/main.rbx?page=1>