Sha256: f5a024fe31d4cbff131c04895a3c37c8baeb32f3165090ffa56d8c72f57b8f4a

Contents?: true

Size: 935 Bytes

Versions: 18

Compression:

Stored size: 935 Bytes

Contents

# frozen_string_literal: true

module Kitchen
  module Directions
    # Bake directons for eoc key equations
    #
    module BakeChapterKeyEquations
      def self.v1(chapter:, metadata_source:, append_to: nil, uuid_prefix: '.')
        V1.new.bake(
          chapter: chapter,
          metadata_source: metadata_source,
          append_to: append_to,
          uuid_prefix: uuid_prefix
        )
      end

      class V1
        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
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
openstax_kitchen-19.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-18.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-17.1.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-17.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-16.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-15.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-14.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-13.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-12.2.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-12.1.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-12.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-11.2.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-11.1.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-11.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-10.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-9.2.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-9.1.0 lib/kitchen/directions/bake_chapter_key_equations.rb
openstax_kitchen-9.0.0 lib/kitchen/directions/bake_chapter_key_equations.rb