From: Rha7 Date: 2009-06-09T11:30:09+09:00 Subject: Re: New to Programming: Value of gets for just "Enter" 7stud -- wrote: > Ken Bloom wrote: >> On Mon, 08 Jun 2009 14:59:31 +0900, 7stud -- wrote: >> >>> Whenever you hit Enter/Return on your keyboard, you are adding a >>> "newline" to the input. A newline is signified by the string "\n". >> And then the chomp function which he calls on the string removes the \n >> from the end, making it an empty string. > > Really? if input.chomp.strip != ""