Method: WordWrapper#illegal_words

Defined in:
lib/word_wrapper.rb

#illegal_wordsArray<String>

Any words in the text longer than the width of the output

Returns:

  • (Array<String>)

    illegal words



38
39
40
# File 'lib/word_wrapper.rb', line 38

def illegal_words
  @words.select{ |word| word.length > @width }
end