class Object

def blank?

Other tags:
    Example: [nil].blank? #=> false -
    Example: [1].blank? #=> false -
    Example: [].blank? #=> true -

Returns:
  • (TrueClass, FalseClass) -
def blank?
  nil? || (respond_to?(:empty?) && empty?)
end