Sha256: edd74fcc49cff51dc329b72c1acceeab2579346c1ea3062591206d1b2cfe81b3
Contents?: true
Size: 377 Bytes
Versions: 10
Compression:
Stored size: 377 Bytes
Contents
class Grade # rails config for default grading method GRADE_METHOD = 'japanese_hs_standard' def initialize(exam_portion) @exam_portion = exam_portion #checking grading system # best use will be 'case statement' if GRADE_METHOD == 'japanese_hs_standard' @grade = JapaneseHsStandard.new end end def grade_portion @grade.grade_portion(@exam_portion) end end
Version data entries
10 entries across 10 versions & 2 rubygems