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 ?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs