class Object
def blank?
- Example: [nil].blank? #=> false -
Example: [1].blank? #=> false -
Example: [].blank? #=> true -
Returns:
-
(TrueClass, FalseClass)
-
def blank? nil? || (respond_to?(:empty?) && empty?) end
(TrueClass, FalseClass)
-
def blank? nil? || (respond_to?(:empty?) && empty?) end