class Daigaku::Unit
Attributes
task[R]
title[R]
Public Class Methods
new(path)
click to toggle source
# File lib/daigaku/unit.rb, line 5 def initialize(path) @path = path @title = File.basename(path).gsub(/\_+/, ' ') end
Public Instance Methods
mastered?()
click to toggle source
# File lib/daigaku/unit.rb, line 22 def mastered? solution.verified? end
reference_solution()
click to toggle source
# File lib/daigaku/unit.rb, line 14 def reference_solution @reference_solution ||= ReferenceSolution.new(@path) end
solution()
click to toggle source
# File lib/daigaku/unit.rb, line 18 def solution @solution ||= Solution.new(@path) end