Class: Bookbinder::Config::Checkers::DitamapPresenceChecker
- Inherits:
-
Object
- Object
- Bookbinder::Config::Checkers::DitamapPresenceChecker
- Defined in:
- lib/bookbinder/config/checkers/ditamap_presence_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 |
# File 'lib/bookbinder/config/checkers/ditamap_presence_checker.rb', line 7 def check(config) if any_sections_missing_ditamaps?(config.sections) DitamapLocationError.new( "You must have a 'ditamap_location' for each key in dita_sections." ) end end |