blank?() public

An object is blank if it’s false, empty, or a whitespace string. For example, nil, ”, β€˜ ’, [], {}, and false are all blank.

This simplifies

!address || address.empty?

to

address.blank?

@return [true, false]

Show source
Register or log in to add new notes.
October 27, 2009
4 thanks

#present?

The opposite of this is #present?