class Object
def blank?
...to:
if address.nil? || address.empty?
This simplifies:
For example, '', ' ', +nil+, [], and {} are all blank.
An object is blank if it's false, empty, or a whitespace string.
def blank? respond_to?(:empty?) ? empty? : !self end