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.
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.