Ok, this is what I am trying to achieve
Write the program we talked about at the beginning of this chapter,
one that asks us to type as many words as we want (one word
per line, continuing until we just press Enter on an empty line)
and then repeats the words back to us in alphabetical order. Make
sure to test your program thoroughly; for example, does hitting
Enter on an empty line always exit your program? Even on the
first line? And the second? Hint: There’s a lovely array method
that will give you a sorted version of an array: sort. Use it!
and this is what I am doing
words = 
say = ‘nil’
while say != ‘’
puts 'say a word: ’
talk = gets.chomp
exit false if gets.chomp.empty?
This is having me input two different words before putsing ‘Say a word’
Kindly point me in the right direction.