diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-13 11:54:31 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-13 11:54:31 +0000 |
| commit | 9fee0c277466ac85e58705cfcc413743dcc496f3 (patch) | |
| tree | 0de2d37e252c381bac0cb5853a169c7b48ef98d2 | |
| parent | 840620695973cdd9a6f3ee0b23afef79a378f947 (diff) | |
| download | ruby-9fee0c277466ac85e58705cfcc413743dcc496f3.tar.gz ruby-9fee0c277466ac85e58705cfcc413743dcc496f3.tar.xz ruby-9fee0c277466ac85e58705cfcc413743dcc496f3.zip | |
inconsistency of the arguments for respond_to? in previous change is fixed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 2 | ||||
| -rw-r--r-- | lib/open-uri.rb | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -Thu Nov 13 20:34:17 2003 Tanaka Akira <akr@m17n.org> +Thu Nov 13 20:53:35 2003 Tanaka Akira <akr@m17n.org> * lib/open-uri.rb (Kernel[#.]open): hard coded URI schemes removed. [ruby-ext:02251] diff --git a/lib/open-uri.rb b/lib/open-uri.rb index d01496ce7..df6ea232d 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -77,7 +77,7 @@ module Kernel # http:// and ftp://. In this http and ftp case, the opened file object # is extended by OpenURI::Meta. def open(name, *rest, &block) - if name.respond_to?("open") + if name.respond_to?(:open) name.open(*rest, &block) elsif name.respond_to?("to_str") && %r{\A[A-Za-z][A-Za-z0-9+\-\.]*://} =~ name && |
