Module: Kitchen::Directions::BakeUnnumberedExercise

Defined in:
lib/kitchen/directions/bake_unnumbered_exercise.rb

Class Method Summary collapse

Class Method Details

.v1(exercise:) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/kitchen/directions/bake_unnumbered_exercise.rb', line 6

def self.v1(exercise:)
  exercise.problem.wrap_children(class: 'os-problem-container')
  return unless exercise.solution

  exercise.solutions.each do |solution|
    solution.wrap_children(class: 'os-solution-container')
  end
end