Sha256: 0a7c6d29946cc0dac9f64a8f5341f39090a6c4e1d94ad3570cbfc0c0b7a4bd6b

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

require 'nb_class/utils'

module NBClass
  class PhraseArray
    def initialize
      @phrase_array = []
    end
    def <<(phrase)
      @phrase_array << Utils.break_phrase_in_word_array(phrase)
    end
    def size
      @phrase_array.size
    end
    def [](index)
      @phrase_array[index]
    end
    def each(&block)
      @phrase_array.each(&block)
    end
    def to_s
      @phrase_array.to_s
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nb_class-0.0.1 lib/nb_class/phrase_array.rb