From 8bfe1b13b66c119be8a62f4021f647c627e9fd13 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: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/common.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') diff --git a/lib/uri/common.rb b/lib/uri/common.rb index 175ef9730..f5772084e 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