Class: RIO::ZipFile::Wrap::File

Inherits:
Zip::ZipFileSystem::ZipFsFile
  • Object
show all
Defined in:
lib/rio/ext/zipfile/wrap.rb

Instance Method Summary collapse

Instance Method Details

#open(filename, openMode, *args) ⇒ Object



103
104
105
106
107
108
109
110
# File 'lib/rio/ext/zipfile/wrap.rb', line 103

def open(filename, openMode, *args)
  zipstream = super
  
  case openMode
  when 'r' then Stream::Input.new(super)
  when 'w' then Stream::Output.new(super)
  end
end