Sha256: abf5f53a0b7fe282a5aa4bb02b5eccc8714eaff17db1fff30bd5d70394f2fde4
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
require "epub/ocf/physical_container/rubyzip" module EPUB class OCF class PhysicalContainer class Rubyzip < self def write(path_name, content, mtime: nil) if @archive @archive.remove path_name @archive.get_output_stream(path_name, nil, nil, nil, nil, nil, nil, nil, mtime) {|f| f.write content} @archive.commit else open {|container| container.write(path_name, content, mtime: mtime)} end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
epub-maker-0.1.8 | lib/epub/maker/ocf/physical_container/rubyzip.rb |