module LearnOpen::Lessons
Public Class Methods
classify(lesson_data, options = {})
click to toggle source
# File lib/learn_open/lessons.rb, line 16 def self.classify(lesson_data, options = {}) lesson = lesson_data[:lesson] default = method(:default) lesson_types.find(default) do |type| type.detect(lesson) end.new(lesson_data, options) end
default()
click to toggle source
# File lib/learn_open/lessons.rb, line 4 def self.default LabLesson end
lesson_types()
click to toggle source
# File lib/learn_open/lessons.rb, line 8 def self.lesson_types [ JupyterLesson, ReadmeLesson, IosLesson, ] end