Sha256: 303b15c988cf5eb2bfb8c435ef4ea9ad8806c4205f3c01e35b43f0d947a91639
Contents?: true
Size: 395 Bytes
Versions: 26
Compression:
Stored size: 395 Bytes
Contents
# encoding: UTF-8 # Copyright 2012 Twitter, Inc # http://www.apache.org/licenses/LICENSE-2.0 module TwitterCldr module Segmentation class PossibleWordList attr_reader :length, :items def initialize(length) @items = Array.new(length) { PossibleWord.new } @length = length end def [](idx) items[idx % length] end end end end
Version data entries
26 entries across 26 versions & 1 rubygems