Method: Bookbinder::FileSystem::ZipFile#write

Defined in:
lib/bookbinder/file_system/zip_file.rb

#write(path, data) ⇒ Object



21
22
23
24
25
26
# File 'lib/bookbinder/file_system/zip_file.rb', line 21

def write(path, data)
  return set_mimetype(data)  if path == 'mimetype'
  instantiate_zipfile
  @zipfile.get_output_stream(path) { |f| f.write(data) }
  nil
end