summaryrefslogtreecommitdiffstats
path: root/lib/uri/common.rb
diff options
context:
space:
mode:
authorakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-07 04:51:11 +0000
committerakira <akira@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-07 04:51:11 +0000
commitb99d877869773e8fa1c76e932a8b938b3223e0a7 (patch)
treeded8203e542682aa90764b183c16fd7401e17be7 /lib/uri/common.rb
parentc18488745a1ccd12ed1fb24492f04c1881f5856e (diff)
downloadruby-b99d877869773e8fa1c76e932a8b938b3223e0a7.tar.gz
ruby-b99d877869773e8fa1c76e932a8b938b3223e0a7.tar.xz
ruby-b99d877869773e8fa1c76e932a8b938b3223e0a7.zip
uri-0.9.5
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/uri/common.rb')
-rw-r--r--lib/uri/common.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index ed2f6a7a5..6f2fa81ad 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -378,6 +378,19 @@ module URI
=begin
+--- URI::join(str[, str, ...])
+
+=end
+ def self.join(*str)
+ u = self.parse(str[0])
+ str[1 .. -1].each do |x|
+ u = u.merge(x)
+ end
+ u
+ end
+
+=begin
+
--- URI::extract(str[, schemes])
=end