зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
c5f5173d17
Коммит
ce0aa0af91
|
@ -1,3 +1,7 @@
|
|||
Mon Dec 24 23:01:04 2007 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* lib/open-uri.rb (OpenURI::Buffer): use Meta ===. [ruby-core:14295]
|
||||
|
||||
Mon Dec 24 22:46:42 2007 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* transocode.c: register_functional_transcoder() added.
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче