Write a method which takes in a string and an array of valid word

How do I write a method which takes in a string and an array of valid
words (the word_list). It should return an array of words from the
word_list which have the same length as str but which are one letter
different?

Thank you

···

--
Posted via http://www.ruby-forum.com/.