botp
2/14/2008 1:52:00 PM
On Thu, Feb 14, 2008 at 4:50 PM, nobullet <nobullet@gmail.com> wrote:
> Object#blank?, Object#blank?
> Is any way to point that I want read the first?
try fastri, eg
botp@jedi-hopeful:~$ qri object.blank
---------------------------------------------------------- Object#blank?
blank?()
------------------------------------------------------------------------
An object is blank if it's nil, empty, or a whitespace string. For
example, "", " ", nil, [], and {} are blank.
This simplifies
if !address.nil? && !address.empty?
to
if !address.blank?
botp@jedi-hopeful:~$
kind regards -botp