Module: Kitchen::Directions::BakeNumberedExercise
- Defined in:
- lib/kitchen/directions/bake_numbered_exercise/v1.rb,
lib/kitchen/directions/bake_numbered_exercise/main.rb
Defined Under Namespace
Classes: V1
Class Method Summary collapse
- .bake_solution_v1(exercise:, number:, divider: '. ') ⇒ Object
- .v1(exercise:, number:, options: { suppress_solution_if: false, note_suppressed_solutions: false, cases: false, solution_stays_put: false }) ⇒ Object
Class Method Details
.bake_solution_v1(exercise:, number:, divider: '. ') ⇒ Object
23 24 25 26 |
# File 'lib/kitchen/directions/bake_numbered_exercise/main.rb', line 23 def self.bake_solution_v1(exercise:, number:, divider: '. ') V1.new.bake_solution(exercise: exercise, number: number, divider: divider, solution_stays_put: false) end |
.v1(exercise:, number:, options: { suppress_solution_if: false, note_suppressed_solutions: false, cases: false, solution_stays_put: false }) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/kitchen/directions/bake_numbered_exercise/main.rb', line 6 def self.v1(exercise:, number:, options: { suppress_solution_if: false, note_suppressed_solutions: false, cases: false, solution_stays_put: false }) # any option that is passed in will override the defaults, # but if some options not given, default will be used. .reverse_merge!( suppress_solution_if: false, note_suppressed_solutions: false, cases: false, solution_stays_put: false ) V1.new.bake(exercise: exercise, number: number, options: ) end |