blank?() public

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

This simplifies

address.nil? || 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?