lib/lncs/section.rb in lncs-0.0.3 vs lib/lncs/section.rb in lncs-0.0.4
- old
+ new
@@ -19,9 +19,13 @@
end
def copy_to(dst)
papers.each { |paper| paper.copy_to("#{dst}/#{paper.id}") }
end
+
+ def paper_data_for_manifest(existing_data)
+ papers.reduce({}) { |data, paper| data.merge(paper.data_for_manifest(existing_data)) }
+ end
def generate_body_to(dst, volume_number, start_page)
papers.each do |paper|
padded_start_page = "%04d" % start_page.to_s
paper.copy_to("#{dst}/#{volume_number}#{padded_start_page}")
\ No newline at end of file