Module: Kitchen::Directions::BakeCompositeChapters
- Defined in:
- lib/kitchen/directions/bake_composite_chapters.rb
Class Method Summary collapse
Class Method Details
.v1(book:) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/kitchen/directions/bake_composite_chapters.rb', line 6 def self.v1(book:) book.composite_chapters.each do |chapter| chapter.first("[data-type='document-title']").id = "composite-chapter-#{chapter.count_in(:book)}" end end |