Class: Bookbinder::Config::Checkers::DuplicateSectionNameChecker

Inherits:
Object
  • Object
show all
Defined in:
lib/bookbinder/config/checkers/duplicate_section_name_checker.rb

Constant Summary collapse

DuplicateSectionNameError =
Class.new(RuntimeError)

Instance Method Summary collapse

Instance Method Details

#check(config) ⇒ Object



9
10
11
12
13
# File 'lib/bookbinder/config/checkers/duplicate_section_name_checker.rb', line 9

def check(config)
  if duplicate_section_names?(config)
    DuplicateSectionNameError.new error_message
  end
end