Contents:
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>
Source Code
# File uri/generic.rb, line 700 def merge!(oth) t = merge(oth) if self == t nil else replace!(t) self end end
<code/>and<pre/>for code samples.