Module: Kitchen::Directions::AddInjectedExerciseId

Defined in:
lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb

Overview

Ids should be added before exercises are moved to EOC, since they’re using part of the ancestor page id.

In some books exercises are numbered after moving. That’s why this step has to be separated from BakeInjectedExerciseQuestion

Class Method Summary collapse

Class Method Details

.v1(book:) ⇒ Object



11
12
13
# File 'lib/kitchen/directions/bake_injected_exercise/add_injected_exercise_id.rb', line 11

def self.v1(book:)
  book.pages.injected_questions.each(&:id)
end