Class: Bookbinder::Config::Checkers::SectionPresenceChecker
- Inherits:
-
Object
- Object
- Bookbinder::Config::Checkers::SectionPresenceChecker
- Defined in:
- lib/bookbinder/config/checkers/section_presence_checker.rb
Constant Summary collapse
- NoSectionsError =
Class.new(RuntimeError)
Instance Method Summary collapse
Instance Method Details
#check(config) ⇒ Object
7 8 9 10 11 |
# File 'lib/bookbinder/config/checkers/section_presence_checker.rb', line 7 def check(config) if config.sections.none? NoSectionsError.new('No sections found in your config.yml. Add sections under the appropriate key(s) and try again.') end end |