Class: Epubber::Generators::Endnotes
- Inherits:
-
Epubber::Generator
- Object
- Epubber::Generator
- Epubber::Generators::Endnotes
- Defined in:
- lib/epubber/generators/endnotes.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
#generate ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/epubber/generators/endnotes.rb', line 5 def generate # Because this is an optional generator, don't do anything if there's no # introduction in the book return if book.endnotes.nil? content = template.parse file: 'OEBPS/Text/endnotes.xhtml', context: book_context persist file: 'OEBPS/Text/endnotes.xhtml', content: content end |