From b750470064fec81ed3d2027e986c56c11ff54be6 Mon Sep 17 00:00:00 2001 From: akr Date: Mon, 5 Jul 2004 14:06:10 +0000 Subject: * lib/uri/common.rb (Kernel#URI): new global method for parsing URIs. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/uri') diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 175ef97304..f5772084e2 100644 --- a/lib/uri/common.rb +++ b/lib/uri/common.rb @@ -595,3 +595,13 @@ module URI end end + +module Kernel + # alias for URI.parse. + # + # This method is introduced at 1.8.2. + def URI(uri_str) # :doc: + URI.parse(uri_str) + end + module_function :URI +end -- cgit v1.2.3