Class: JLDrill::DeinflectionRulesFile

Inherits:
DataFile
  • Object
show all
Defined in:
lib/jldrill/model/DeinflectionRules.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

#initializeDeinflectionRulesFile

Returns a new instance of DeinflectionRulesFile.



197
198
199
200
201
# File 'lib/jldrill/model/DeinflectionRules.rb', line 197

def initialize
    super
    @deinflectionRules = DeinflectionRules.new
    @stepSize = 20
end

Instance Attribute Details

#deinflectionRulesObject

Returns the value of attribute deinflectionRules.



194
195
196
# File 'lib/jldrill/model/DeinflectionRules.rb', line 194

def deinflectionRules
  @deinflectionRules
end

Instance Method Details

#dataSizeObject



203
204
205
# File 'lib/jldrill/model/DeinflectionRules.rb', line 203

def dataSize
    @deinflectionRules.size
end

#match(string) ⇒ Object



211
212
213
# File 'lib/jldrill/model/DeinflectionRules.rb', line 211

def match(string)
    @deinflectionRules.match(string)
end

#parserObject



207
208
209
# File 'lib/jldrill/model/DeinflectionRules.rb', line 207

def parser
    @deinflectionRules
end