Sha256: b3a62771c61cedc04c937a9e74e23dca0e4ab806bd8166c619370a2d718b873e
Contents?: true
Size: 412 Bytes
Versions: 38
Compression:
Stored size: 412 Bytes
Contents
module WithStudentPathNavigation def next_button(navigable) return unless navigable ContinueNavigation.new(self).button(navigable) || RevisitNavigation.new(self).button(navigable) end def next_lesson_button(guide) next_button(guide.lesson) || chapter_finished(guide.chapter) end def next_exercise_button(exercise) next_button(exercise) || next_button(exercise.guide.lesson) end end
Version data entries
38 entries across 38 versions & 1 rubygems