Ruby Keyword: while - rking/pry-docmore GitHub Wiki
Loop as long as the condition holds.
puts 'Guess a letter.' while 'y' == $stdin.readline.chomp puts 'Anything but that one.' end
Loop as long as the condition holds.
puts 'Guess a letter.' while 'y' == $stdin.readline.chomp puts 'Anything but that one.' end