Subject: Re: nil_or_empty? on String
From: Jason Creighton <androflux softhome.net.remove.to.reply>
Date: Tue, 22 Jul 2003 12:27:28 +0900
References: 76249
> I wanted to avoid this:
>
> if (user.nil? || user.empty?) && !(pswd.nil? || pswd.empty?)
You could do something like:
if user.to_s.empty? && pswd.to_s.empty?
Jason Creighton