Class: BitClust::Generators::EPUB
- Defined in:
- lib/bitclust/generators/epub.rb
Constant Summary collapse
- CONTENTS_DIR_NAME =
'OEBPS'
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(options = {}) ⇒ EPUB
constructor
A new instance of EPUB.
Constructor Details
#initialize(options = {}) ⇒ EPUB
Returns a new instance of EPUB.
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/bitclust/generators/epub.rb', line 11 def initialize( = {}) @options = .dup @prefix = [:prefix] @capi = [:capi] @outputdir = [:outputdir] @filename = [:filename] @templatedir = [:templatedir] @catalog = [:catalog] @themedir = [:themedir] @fs_casesensitive = [:fs_casesensitive] @keep = [:keep] @verbose = [:verbose] end |
Instance Method Details
#generate ⇒ Object
27 28 29 30 31 32 33 34 35 |
# File 'lib/bitclust/generators/epub.rb', line 27 def generate make_epub_directory do |epub_directory| contents_directory = epub_directory + CONTENTS_DIR_NAME copy_static_files(epub_directory) generate_xhtml_files(contents_directory) generate_contents_opf(epub_directory) pack_epub(epub_directory) end end |