Module: Kitchen::Directions::BakeInjectedExercise

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

Defined Under Namespace

Classes: V1

Class Method Summary collapse

Class Method Details

.v1(exercise:, options: { alphabetical_multiparts: false, list_type: nil, add_brackets: false }) ⇒ Object



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

def self.v1(exercise:, options: {
  alphabetical_multiparts: false,
  list_type: nil,
  add_brackets: false
})
  options.reverse_merge!(
    alphabetical_multiparts: false,
    list_type: nil,
    add_brackets: false
  )
  V1.new.bake(exercise: exercise, options: options)
end