class Zip::OutputStream

def close

Closes the stream and writes the central directory to the zip file
def close
  return if @closed
  finalize_current_entry
  update_local_headers
  write_central_directory
  @output_stream.close
  @closed = true
end