summaryrefslogtreecommitdiff
path: root/lib/open-uri.rb
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
commit5d592124f5700a762fc9a153031c786bb739f58d (patch)
tree8216e8ed064a9ef28c07dc810c9ea6ea973bccb9 /lib/open-uri.rb
parent03a1e25542345e6e4b40864a27d62d11df700047 (diff)
Fix method redefined warning in open-uri.rb. [ruby-core:14304].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open-uri.rb')
-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 4411344339..d6d4019e06 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,