summaryrefslogtreecommitdiff
path: root/lib/open-uri.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 14:04:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-24 14:04:16 +0000
commitce0aa0af9107018bd5d7fcfe4fc5b27da1896342 (patch)
tree54cdf424cabbf095d8eaa49d06597fb270bb437b /lib/open-uri.rb
parentc5f5173d1744d5bfbf6a917f005944290dbc75e7 (diff)
downloadruby-ce0aa0af9107018bd5d7fcfe4fc5b27da1896342.tar.gz
* lib/open-uri.rb (OpenURI::Buffer): use Meta ===. [ruby-core:14295]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/open-uri.rb')
-rw-r--r--lib/open-uri.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index d6d4019e06..a981f58eda 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -367,14 +367,14 @@ module OpenURI
require 'tempfile'
io = Tempfile.new('open-uri')
io.binmode
- Meta.init io, @io if @io.respond_to? :meta
+ Meta.init io, @io if Meta === @io
io << @io.string
@io = io
end
end
def io
- Meta.init @io unless @io.respond_to? :meta
+ Meta.init @io unless Meta === @io
@io
end
end