Sha256: 8e85438619077b84ca68988246a101d616925af66e52a8fc7133d1689751a48c

Contents?: true

Size: 634 Bytes

Versions: 4

Compression:

Stored size: 634 Bytes

Contents

# frozen_string_literal: true

module Kitchen::Directions::MoveExercisesToEOC
  class V1
    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,
        include_intro_page: false
      ) do |exercise_section|
        Kitchen::Directions::RemoveSectionTitle.v1(section: exercise_section)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
openstax_kitchen-10.0.0 lib/kitchen/directions/move_exercises_to_eoc/v1.rb
openstax_kitchen-9.2.0 lib/kitchen/directions/move_exercises_to_eoc/v1.rb
openstax_kitchen-9.1.0 lib/kitchen/directions/move_exercises_to_eoc/v1.rb
openstax_kitchen-9.0.0 lib/kitchen/directions/move_exercises_to_eoc/v1.rb