summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/uri/common.rb10
1 files changed, 10 insertions, 0 deletions
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