loop { block }
loop â an_enumerator
loop â an_enumerator
Instance Public methods
Repeatedly executes the block.
If no block is given, an enumerator is returned instead.
1 2 3 4 5 6 | loop do print "Input: " line = gets break if !line or line =~ /^qQ/ # ... end |
StopIteration raised in the block breaks the loop.
Please login to continue.