class TwitterCldr::Segmentation::BrahmicBreakEngine::EngineState
ICU keeps track of all these variables inline, but since we've done a bit of method separating (see below), it's too ugly to pass all of them around as arguments. Instead we encapsulate them all in this handy state object.
Attributes
current[RW]
word_length[RW]
words[R]
words_found[RW]
Public Class Methods
new(options = {})
click to toggle source
# File lib/twitter_cldr/segmentation/brahmic_break_engine.rb, line 24 def initialize(options = {}) @current = options.fetch(:current, 0) @words = options.fetch(:words) @words_found = options.fetch(:words_found, 0) @word_length = options.fetch(:word_length, 0) end