Method: LessonsIndexer::Course#generate_headings
- Defined in:
- lib/lessons_indexer/course.rb
#generate_headings ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'lib/lessons_indexer/course.rb', line 31 def generate_headings lessons.each do |lesson| lesson_heading = headings.for(lesson) if lesson_heading yield "\n\n", lesson.path else warning pou('warnings.heading_not_found', lesson: lesson.name) end end end |