diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 10:35:58 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-23 10:35:58 +0000 |
commit | 5d592124f5700a762fc9a153031c786bb739f58d (patch) | |
tree | 8216e8ed064a9ef28c07dc810c9ea6ea973bccb9 | |
parent | 03a1e25542345e6e4b40864a27d62d11df700047 (diff) | |
download | ruby-5d592124f5700a762fc9a153031c786bb739f58d.tar.gz |
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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/open-uri.rb | 3 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Sun Dec 23 19:33:42 2007 Eric Hodel <drbrain@segment7.net> + + * lib/open-uri.rb: Fix method redefined warning. [ruby-core:14304] + Sun Dec 23 18:31:49 2007 NARUSE, Yui <naruse@ruby-lang.org> * ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding. 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, |