Typo fix: io.is_a() -> io.is_a?()
This commit is contained in:
parent
9f6bc1e2e9
commit
d7091a0271
|
@ -120,7 +120,7 @@ module Zip
|
||||||
raise "Zip::ZipFile.open_buffer expects an argument of class String or IO. Found: #{io.class}"
|
raise "Zip::ZipFile.open_buffer expects an argument of class String or IO. Found: #{io.class}"
|
||||||
end
|
end
|
||||||
zf = ::Zip::File.new('', true, true)
|
zf = ::Zip::File.new('', true, true)
|
||||||
if io.is_a(::String)
|
if io.is_a?(::String)
|
||||||
require 'stringio'
|
require 'stringio'
|
||||||
io = ::StringIO.new(io)
|
io = ::StringIO.new(io)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue