class NBClass::PhraseArray

Public Class Methods

new() click to toggle source
# File lib/nb_class/phrase_array.rb, line 5
def initialize
  @phrase_array = []
end

Public Instance Methods

<<(phrase) click to toggle source
# File lib/nb_class/phrase_array.rb, line 8
def <<(phrase)
  @phrase_array << Utils.break_phrase_in_word_array(phrase)
end
[](index) click to toggle source
# File lib/nb_class/phrase_array.rb, line 14
def [](index)
  @phrase_array[index]
end
each(&block) click to toggle source
# File lib/nb_class/phrase_array.rb, line 17
def each(&block)
  @phrase_array.each(&block)
end
size() click to toggle source
# File lib/nb_class/phrase_array.rb, line 11
def size
  @phrase_array.size
end
to_s() click to toggle source
# File lib/nb_class/phrase_array.rb, line 20
def to_s
  @phrase_array.to_s
end