I'm making a hangman game and am defining my words method in order to make the words for the game.
I'm trying to take the words definition and add an array of words which I can call at a later time for a different purpose, is it possible for me to take my method, and put an array inside of the method.
Would doing so look like this:
def method.to_a
['array', 'array', 'array']
end