method

loop

Importance_1
Ruby latest stable (v1_8_7_72) - 0 notes - Class: Kernel
loop() public

Repeatedly executes the block.

   loop do
     print "Input: "
     line = gets
     break if !line or line =~ /^qQ/
     # ...
   end

StopIteration raised in the block breaks the loop.

Show source
Register or log in to add new notes.