module Kitchen::Directions::BakeChapterIntroductions

Public Class Methods

bake_chapter_objectives(chapter:, strategy:) click to toggle source
# File lib/kitchen/directions/bake_chapter_introductions/main.rb, line 24
def self.bake_chapter_objectives(chapter:, strategy:)
  BakeChapterObjectives.new.bake(
    chapter: chapter,
    strategy: strategy
  )
end
bake_chapter_outline(chapter_objectives_html:) click to toggle source
# File lib/kitchen/directions/bake_chapter_introductions/main.rb, line 31
def self.bake_chapter_outline(chapter_objectives_html:)
  BakeChapterOutline.new.bake(
    chapter_objectives_html: chapter_objectives_html
  )
end
v1(book:) click to toggle source
# File lib/kitchen/directions/bake_chapter_introductions/main.rb, line 6
def self.v1(book:)
  V1.new.bake(
    book: book
  )
end
v1_update_selectors(something_with_selectors) click to toggle source
# File lib/kitchen/directions/bake_chapter_introductions/main.rb, line 37
def self.v1_update_selectors(something_with_selectors)
  something_with_selectors.selectors.title_in_introduction_page =
    ".intro-text > [data-type='document-title']"
end
v2( book:, strategy_options: { strategy: :default, bake_chapter_outline: false, introduction_order: :v1 } ) click to toggle source
# File lib/kitchen/directions/bake_chapter_introductions/main.rb, line 12
def self.v2(
  book:,
  strategy_options: {
    strategy: :default, bake_chapter_outline: false, introduction_order: :v1
  }
)
  V2.new.bake(
    book: book,
    strategy_options: strategy_options
  )
end