Class: Kitchen::Directions::BakeChapterKeyEquations::V1

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/directions/bake_chapter_key_equations.rb

Instance Method Summary collapse

Instance Method Details

#bake(chapter:, metadata_source:, append_to:, uuid_prefix:) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/kitchen/directions/bake_chapter_key_equations.rb', line 18

def bake(chapter:, metadata_source:, append_to:, uuid_prefix:)
  MoveCustomSectionToEocContainer.v1(
    chapter: chapter,
    metadata_source: ,
    container_key: 'key-equations',
    uuid_key: "#{uuid_prefix}key-equations",
    section_selector: 'section.key-equations',
    append_to: append_to
  ) do |section|
    RemoveSectionTitle.v1(section: section)
  end
end