From: Robert Klemme Date: 2013-03-30T18:55:41+09:00 Subject: Re: Nil or enter with no input --14dae9399b03cb214004d9216329 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Mar 30, 2013 at 9:16 AM, Joel Pearson wrote: > Robert Klemme wrote in post #1103733: > >> You might want to look into String#empty? > > That alone is not sufficient. You need to at least throw String#chomp > > in the mix: > > I he was already using chomp, so I didn't see a point in mentioning it > :) > Right you are. I am sorry, I didn't notice Phil added it in his second post. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --14dae9399b03cb214004d9216329 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Sat, Mar 30, 2013 at 9:16 AM, Joel Pearson <= ;lists@ruby-forum= .com> wrote:
Robert Klemme wrote in post #1103733:
>> You might want to look into String#empty?
> That alone is not sufficient. =A0You need to at least throw String#cho= mp
> in the mix:

I he was already using chomp, so I didn't see a point in mentioni= ng it
:)

Right you are= . =A0I am sorry, I didn't notice Phil added it in his second post.

Cheers

robert


<= /div>--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/<= /a>
--14dae9399b03cb214004d9216329--