Class: Epubber::Generators::Content

Inherits:
Epubber::Generator show all
Defined in:
lib/epubber/generators/content.rb

Instance Attribute Summary

Attributes inherited from Epubber::Generator

#book, #filename, #working_dir

Instance Method Summary collapse

Methods inherited from Epubber::Generator

#initialize, #register_generators

Constructor Details

This class inherits a constructor from Epubber::Generator

Instance Method Details

#generateObject



5
6
7
8
# File 'lib/epubber/generators/content.rb', line 5

def generate
  content = template.parse file: 'OEBPS/content.opf', context: book_context
  persist file: 'OEBPS/content.opf', content: content
end