[Ruby] How to iterate infinitely in Ruby

less than 1 minute read

When using each or times, you have to decide how many times to end before iterating. Infinite loop can be made by using loop

loop do
   Iterative process
end