summaryrefslogtreecommitdiff
path: root/lib/open-uri.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-13 11:54:31 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-11-13 11:54:31 +0000
commit810e7938fd12989db83b59a3c2e467f400e0480a (patch)
tree0de2d37e252c381bac0cb5853a169c7b48ef98d2 /lib/open-uri.rb
parent7924fca23e96b9b5bdfd400beeb09e42a7a4c6de (diff)
inconsistency of the arguments for respond_to? in previous change is fixed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open-uri.rb')
-rw-r--r--lib/open-uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index d01496ce71..df6ea232d6 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 &&