class Kitchen::Directions::MoveExercisesToEOC::V1

Public Instance Methods

bake(chapter:, metadata_source:, klass:, append_to: nil, uuid_prefix: '.') click to toggle source
# File lib/kitchen/directions/move_exercises_to_eoc/v1.rb, line 5
def bake(chapter:, metadata_source:, klass:, append_to: nil, uuid_prefix: '.')
  Kitchen::Directions::MoveCustomSectionToEocContainer.v1(
    chapter: chapter,
    metadata_source: metadata_source,
    container_key: klass,
    uuid_key: "#{uuid_prefix}#{klass}",
    section_selector: "section.#{klass}",
    append_to: append_to || chapter
  ) do |exercise_section|
    Kitchen::Directions::RemoveSectionTitle.v1(section: exercise_section)
  end
end