lib/epub/maker.rb in epub-maker-0.0.4 vs lib/epub/maker.rb in epub-maker-0.0.5
- old
+ new
@@ -81,16 +81,13 @@
no_package_rootfile = rootfiles.find {|rf| rf.package.nil?}
no_package_rootfile.package = package if no_package_rootfile
package
end
- # @param archive [OCF::PhysicalContainer]
def save
ocf.save
- package.save
- resources.each do |item|
- item.save
- end
+ packages.each(&:save)
+ resources.each(&:save)
end
end
end
class Pathname