Flowdock
blank?() public

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

This simplifies:

if !address.nil? && !address.empty?

…to:

if !address.blank?
Show source
Register or log in to add new notes.
October 27, 2009
4 thanks

#present?

The opposite of this is #present?