Class: Softcover::MarketingManifest

Inherits:
BookManifest
  • Object
show all
Defined in:
lib/softcover/book_manifest.rb

Constant Summary collapse

YAML_PATH =
File.join(Softcover::Directories::CONFIG, 'marketing.yml')

Constants inherited from BookManifest

BookManifest::TXT_PATH

Constants included from Utils

Utils::UNITS

Instance Attribute Summary

Attributes inherited from BookManifest

#book_file

Instance Method Summary collapse

Methods inherited from BookManifest

#basenames, #chapter_file_paths, #chapter_includes, #chapter_objects, #ensure_template_files, #escaped_title, #extensions, find_book_root!, #find_chapter_by_number, #find_chapter_by_slug, #first_chapter, #frontmatter?, #full_html_file, #html_title, #markdown?, not_found!, #pdf_chapter_filenames, #pdf_chapter_names, #polytex?, #polytex_dir, #preview_chapter_range, #preview_chapters, #read_from_md, #remove_frontmatter, #source_files, #ungenerated_markdown?, #url, valid_directory?

Methods included from Utils

#add_highlight_class!, #article?, #as_size, #book_file_lines, #chapter_label, #commands, #current_book, #dependency_filename, #digest, #executable, #execute, #filename_or_default, #first_path, #get_filename, #html_extension, #in_book_directory?, #language_labels, #linux?, #logged_in?, #master_content, #master_filename, #master_latex_header, #mkdir, #non_comment_lines, #os_x?, #path, #polytexnic_html, #raw_lines, #reset_current_book!, #rm, #rm_r, #silence, #silence_stream, #source, #template_dir, #tmpify, #unpublish_slug, #write_master_latex_file, #write_pygments_file

Constructor Details

#initializeMarketingManifest

Returns a new instance of MarketingManifest.



15
16
17
# File 'lib/softcover/book_manifest.rb', line 15

def initialize
  marshal_load read_from_yml.symbolize_keys!
end