How to make ruby method recall itself?

I have this method which gets some input and pushes them back to an array. The code runs fine.

Now i want to make it call it self again and again until a certain thing happens !
for example that Guess Variable below asks the user for an input and if their answer was replay then i want the whole method to rerun again.
How i will be able to do that ?