This gem takes a string containing one or more sentences and returns a string with the words in each sentence in reverse order.
Install the gem.
gem install reverse_words
Give it a string containing one or more sentences via the command line.
reverse_words "Welcome to GitHub. This is my Ruby gem."