class TwitterCldr::Segmentation::PossibleWordList

Attributes

items[R]
length[R]

Public Class Methods

new(length) click to toggle source
# File lib/twitter_cldr/segmentation/possible_word_list.rb, line 12
def initialize(length)
  @items = Array.new(length) { PossibleWord.new }
  @length = length
end

Public Instance Methods

[](idx) click to toggle source
# File lib/twitter_cldr/segmentation/possible_word_list.rb, line 17
def [](idx)
  items[idx % length]
end