# How to make ruby method recall itself?

**URL:** <https://www.ruby-forum.com/t/how-to-make-ruby-method-recall-itself/259691>\
**Category:** Uncategorized\
**Created:** [May 31, 2020, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-make-ruby-method-recall-itself/259691 "2020-05-31T18:44:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danito](https://www.ruby-forum.com/user_avatar/www.ruby-forum.com/danito/32/2435_2.png) [@Danito](https://www.ruby-forum.com/u/Danito)\
**Post date:** [May 31, 2020, 6:44pm UTC](https://www.ruby-forum.com/t/how-to-make-ruby-method-recall-itself/259691/1 "2020-05-31T18:44:10Z")

</div>

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 ?

 ![Screenshot from 2020-05-31 20-39-21](https://www.ruby-forum.com/uploads/default/original/2X/1/1bb6dc4a39b1e7cb3f68b8ff907bd870eea07832.png)
