Class: Bookbinder::Config::Checkers::DitaSectionChecker
- Inherits:
-
Object
- Object
- Bookbinder::Config::Checkers::DitaSectionChecker
- Defined in:
- lib/bookbinder/config/checkers/dita_section_checker.rb
Constant Summary collapse
- DitamapLocationError =
Class.new(RuntimeError)
Instance Method Summary collapse
Instance Method Details
#check(config) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/bookbinder/config/checkers/dita_section_checker.rb', line 7 def check(config) if none_with_pred?(dita_sections(config)) { |s| s.preprocessor_config['ditamap_location'] } DitamapLocationError.new( "You must have at least one 'ditamap_location' key in dita_sections." ) end end |