method
blank?
rails latest stable - Class:
Object
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]
1Note
#present?
The opposite of this is #present?