SyntaxFix
Write A Post
Hire A Developer
Questions
Like this:
people = [] begin info = gets.chomp people += [Person.new(info)] if not info.empty? end while not info.empty?
Reference: Ruby's Hidden do {} while () Loop