Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain redo statement in Ruby?



Explain redo statement in Ruby?..

Answer / Chandan Kumar Jaiswal

The redo statement in Ruby causes the current iteration of a loop (such as while, until, or for) to repeat immediately. It does not continue with the next iteration but restarts the current one.n```rubynfor i in 1..5n if i == 3n redo # repeats this iterationn endnnputs i # this line will be executed twice for i=3 because we redid the loop

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby Interview Questions

What is Ruby programming language?

1 Answers  


Explain me what the difference is between false and nil in ruby?

1 Answers  


Explain module mixins in Ruby?

1 Answers  


What are the object-oriented programming features supported by ruby?

1 Answers  


Explain until loop in ruby.

1 Answers  


What is sysread method in Ruby?

1 Answers  


What are the only two values that are falsy?

1 Answers  


what is class libraries in Ruby?

1 Answers  


Explain ruby strings.

1 Answers  


List some features of ruby?

1 Answers  


How to use sql db or mysql db. Without defining it in the database.yml

1 Answers  


How to create ruby object?

1 Answers  


Categories