diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 1240e6749c..3f92423b1a 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -643,9 +643,22 @@ module URI # # require 'uri' # - # p URI.join("http://localhost/","main.rbx") + # p URI.join("http://example.com/","main.rbx") # # => # # + # p URI.join('http://example.com', 'foo') + # # => # + # + # p URI.join('http://example.com', '/foo', '/bar') + # # => # + # + # p URI.join('http://example.com', '/foo', 'bar') + # # => # + # + # p URI.join('http://example.com', '/foo/', 'bar') + # # => # + # + # def self.join(*str) DEFAULT_PARSER.join(*str) end