Sha256: ef29d79f223914f9660bafbd471158c0d7888c68ad1e5653a314e8c906503c70
Contents?: true
Size: 439 Bytes
Versions: 3
Compression:
Stored size: 439 Bytes
Contents
module Daigaku class Unit attr_reader :title, :task def initialize(path) @path = path @title = File.basename(path).gsub(/\_+/, ' ') end def task @task ||= Task.new(@path) end def reference_solution @reference_solution ||= ReferenceSolution.new(@path) end def solution @solution = Solution.new(@path) end def mastered? solution.verified? end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
daigaku-0.6.0 | lib/daigaku/unit.rb |
daigaku-0.5.0 | lib/daigaku/unit.rb |
daigaku-0.4.0 | lib/daigaku/unit.rb |