summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 10:35:58 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-23 10:35:58 +0000
commit81af92a7513846d6e0fc315bc05433190aa03cc7 (patch)
tree8216e8ed064a9ef28c07dc810c9ea6ea973bccb9 /lib
parenta25ac8384510353a0eb2732b1bfc97a34d878657 (diff)
downloadruby-81af92a7513846d6e0fc315bc05433190aa03cc7.tar.gz
ruby-81af92a7513846d6e0fc315bc05433190aa03cc7.tar.xz
ruby-81af92a7513846d6e0fc315bc05433190aa03cc7.zip
Fix method redefined warning in open-uri.rb. [ruby-core:14304].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 441134433..d6d4019e0 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -5,6 +5,9 @@ require 'time'
module Kernel
private
alias open_uri_original_open open # :nodoc:
+ class << self
+ alias open_uri_original_open open # :nodoc:
+ end
# makes possible to open various resources including URIs.
# If the first argument respond to `open' method,