class NBClass::Utils
Public Class Methods
break_phrase_in_word_array(phrase)
click to toggle source
# File lib/nb_class/utils.rb, line 3 def self.break_phrase_in_word_array(phrase) [",", ":", "?", "!", ";", ".", "/", "|"].each do |elem| phrase = phrase.gsub(elem,"") end phrase.split end