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 != ""