lib/epub/maker/ocf/physical_container.rb in epub-maker-0.0.3 vs lib/epub/maker/ocf/physical_container.rb in epub-maker-0.0.4
- old
+ new
@@ -11,13 +11,18 @@
module EPUB
class OCF
class PhysicalContainer
class << self
- def save(container_path, path_name, content)
+ def write(container_path, path_name, content)
open(container_path) {|container|
- container.save(path_name, content)
+ container.write(path_name, content)
}
+ end
+
+ def save(container_path, path_name, content)
+ warn "EPUB::OCF::PhysicalContainer.#{__method__} is deprecated. Use .write instead"
+ write(container_path, path_name, content)
end
end
end
end
end