From: Niklas Heinrich Date: 2008-07-25T02:49:54+09:00 Subject: Re: differnce between .nil? , .empty?, .blank? blank? is not only a combination. blank? also test if there are printable characters in a string: \n".empty? => false "\n".blank? => true Niklas Heinrich Bill Walton wrote: > Stefano Crocco wrote: > >> Regarding blank?, I never heard of it > > It's a Rails method on the Object class that 'combines' the test for > nil? > and empty?. Simplifies 'if thing.nil? || thing.empty?' to 'if > thing.blank?'. > > Best regards, > Bill > >