Method: ActiveRecall::LeitnerSystem#initialize
- Defined in:
- lib/active_recall/algorithms/leitner_system.rb
#initialize(box:, times_right:, times_wrong:, current_time: Time.current) ⇒ LeitnerSystem
Returns a new instance of LeitnerSystem.
31 32 33 34 35 36 |
# File 'lib/active_recall/algorithms/leitner_system.rb', line 31 def initialize(box:, times_right:, times_wrong:, current_time: Time.current) @box = box @current_time = current_time @times_right = times_right @times_wrong = times_wrong end |