Sha256: 1d6c9d2552131f559289905ca4e0f1efa4ad812475cfcc472c642011c5243b9b
Contents?: true
Size: 764 Bytes
Versions: 1
Compression:
Stored size: 764 Bytes
Contents
# encoding: utf-8 require 'jldrill/model/Problem' module JLDrill # Test your kanji reading. Read the kanji and guess the # reading and definitions class KanjiProblem < Problem def initialize(item) super(item) @level = 2 @questionParts = ["kanji"] @answerParts = ["reading", "definitions", "hint"] end def name return "KanjiProblem" end def clone value = KanjiProblem.new(item) value.assign(self) return value end # Returns false if the kanji is empty and we can't drill this # item. def valid? return !(evaluateAttribute("kanji").empty?) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jldrill-0.6.0.1 | lib/jldrill/model/problems/KanjiProblem.rb |