Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/support.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#blank? ⇒ Boolean
“”, “ ”, nil, [], and {} are blank.
Instance Method Details
#blank? ⇒ Boolean
“”, “ ”, nil, [], and {} are blank
59 60 61 62 63 64 65 66 67 |
# File 'lib/support.rb', line 59 def blank? if respond_to?(:empty?) && respond_to?(:strip) empty? or strip.empty? elsif respond_to?(:empty?) empty? else !self end end |