lib/gepub/resource_builder.rb in gepub-0.6.9.0 vs lib/gepub/resource_builder.rb in gepub-0.6.9.1

- old
+ new

@@ -141,9 +141,13 @@ def heading(text, id = nil) @last_defined_item.toc_text_with_id(text, id) end + def id(the_id) + @last_defined_item.id = the_id + end + def with_media_type(*type) raise 'with_media_type needs block.' unless block_given? @file_postprocess['with_media_type'] = Proc.new { media_type(*type) } @files_postprocess['with_media_type'] = Proc.new { media_type(*type) } yield