class Zip::OutputStream
def initialize(file_name, stream = false, encrypter = nil)
Opens the indicated zip file. If a file with that name already
def initialize(file_name, stream = false, encrypter = nil) super() @file_name = file_name @output_stream = if stream iostream = @file_name.dup iostream.reopen(@file_name) iostream.rewind iostream else ::File.new(@file_name, 'wb') end @entry_set = ::Zip::EntrySet.new @compressor = ::Zip::NullCompressor.instance @encrypter = encrypter || ::Zip::NullEncrypter.new @closed = false @current_entry = nil @comment = nil end