Module: Mangdown::CBZ
- Extended by:
- Tools
- Defined in:
- lib/mangdown/support/cbz.rb
Overview
Package manga or chapter directories into .cbz archive files
Constant Summary
Constants included from Tools
Class Method Summary collapse
Methods included from Tools
file_join, get, get_doc, get_root, hydra_streaming, image_extension, relative_or_absolute_path, typhoeus, valid_path_name
Class Method Details
.all(main_dir) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/mangdown/support/cbz.rb', line 9 def all(main_dir) main_dir = String(main_dir) main_dir = validate_file_or_dir_names(main_dir, false) each_dir_or_page(main_dir) { |dir| validate_file_or_dir_names(dir) } cbz_sub_dirs(main_dir) end |
.one(dir, validate_main_dir = true) ⇒ Object
16 17 18 19 20 |
# File 'lib/mangdown/support/cbz.rb', line 16 def one(dir, validate_main_dir = true) dir = String(dir) dir = validate_file_or_dir_names(dir, validate_main_dir) cbz_dir(dir) end |