Sha256: 08e7ce77abba02b6acc37bf6dec945579fff7a7f901c1b73a645b7b6400df58d

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

require 'jldrill/model/Problem'

module JLDrill
    # Shows you the English and you guess the kanji and reading
    class MeaningProblem < Problem
        def initialize(item)
            super(item)
            @level = 1
            @questionParts = ["definitions"]
            @answerParts = ["kanji", "reading", "hint"]
        end

        def name
            return "MeaningProblem"
        end

        def clone
            value = MeaningProblem.new(item)
            value.assign(self)
            return value
        end

        def largeReading?
            return evaluateAttribute("kanji").empty?
        end
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jldrill-0.5.1.7 lib/jldrill/model/problems/MeaningProblem.rb