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]
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]