Module: Kitchen::Directions::MoveSolutionsFromExerciseSection

Defined in:
lib/kitchen/directions/move_solutions_to_answer_key/move_solutions_from_exercise_section.rb

Defined Under Namespace

Classes: V1

Class Method Summary collapse

Class Method Details

.v1(within:, append_to:, section_class:, title_number: nil, options: { add_title: true, in_appendix: false }) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/kitchen/directions/move_solutions_to_answer_key/move_solutions_from_exercise_section.rb', line 4

def self.v1(within:, append_to:, section_class:, title_number: nil, options: {
  add_title: true,
  in_appendix: false
})
  options.reverse_merge!(
    add_title: true,
    in_appendix: false
  )
  V1.new.bake(within: within, append_to: append_to, section_class: section_class,
              title_number: title_number, options: options)
end