Class: EPUB::OCF::PhysicalContainer
- Inherits:
-
Object
- Object
- EPUB::OCF::PhysicalContainer
show all
- Defined in:
- lib/epub/maker/ocf/physical_container.rb,
lib/epub/maker/ocf/physical_container/zipruby.rb,
lib/epub/maker/ocf/physical_container/archive_zip.rb
Defined Under Namespace
Classes: ArchiveZip, Zipruby
Class Method Summary
collapse
Class Method Details
.save(container_path, path_name, content) ⇒ Object
22
23
24
25
|
# File 'lib/epub/maker/ocf/physical_container.rb', line 22
def save(container_path, path_name, content)
warn "EPUB::OCF::PhysicalContainer.#{__method__} is deprecated. Use .write instead"
write(container_path, path_name, content)
end
|
.write(container_path, path_name, content) ⇒ Object
16
17
18
19
20
|
# File 'lib/epub/maker/ocf/physical_container.rb', line 16
def write(container_path, path_name, content)
open(container_path) {|container|
container.write(path_name, content)
}
end
|