class Kitchen::Directions::BakeChapterKeyEquations::V1

Public Instance Methods

bake(chapter:, metadata_source:, append_to:, uuid_prefix:) click to toggle source
# 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: 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