title: Is there a "do ... while" loop in Ruby?
body: <p>I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name):</p>
  
  <pre><code>people = []
  info = 'a' # must fill variable with something, otherwise loop won't execute
  
  while not info.empty?
      info = gets.chomp
      people += [Person.new(info)] if not info.empty?
  end
  </code></pre>
  
  <p>This code would look much nicer in a do ... while loop:</p>
  
  <pre><code>people = []
  
  do
      info = gets.chomp
      people += [Person.new(info)] if not info.empty?
  while not info.empty?
  </code></pre>
  
  <p>In this code I don't have to assign info to some random string.</p>
  
  <p>Unfortunately this type of loop doesn't seem to exist in Ruby. Can anybody suggest a better way of doing this?</p>