Class: JLDrill::KanjiFile

Inherits:
DataFile show all
Defined in:
lib/jldrill/model/moji/Kanji.rb

Instance Attribute Summary collapse

Attributes inherited from DataFile

#encoding, #file, #lines, #parsed, #publisher, #stepSize

Instance Method Summary collapse

Methods inherited from DataFile

#createLines, #eof?, #findEncoding, #finishParsing, #fraction, #load, #loaded?, #parse, #parseChunk, #parseEntry, #readLines, #reset, #setLoaded, #shortFilename

Constructor Details

#initializeKanjiFile

Returns a new instance of KanjiFile.



196
197
198
199
200
# File 'lib/jldrill/model/moji/Kanji.rb', line 196

def initialize
    super
    @kanjiList = KanjiList.new
    @stepSize = 100
end

Instance Attribute Details

#kanjiListObject

Returns the value of attribute kanjiList.



193
194
195
# File 'lib/jldrill/model/moji/Kanji.rb', line 193

def kanjiList
  @kanjiList
end

Instance Method Details

#dataSizeObject



202
203
204
# File 'lib/jldrill/model/moji/Kanji.rb', line 202

def dataSize
    @kanjiList.size
end

#parserObject



206
207
208
# File 'lib/jldrill/model/moji/Kanji.rb', line 206

def parser
    @kanjiList
end