Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/css_dryer/processor.rb
Overview
Lifted from Rails. “”, “ ”, nil, [], and {} are blank
Instance Method Summary collapse
-
#blank? ⇒ Boolean
:nodoc:.
Instance Method Details
#blank? ⇒ Boolean
:nodoc:
4 5 6 7 8 9 10 11 12 |
# File 'lib/css_dryer/processor.rb', line 4 def blank? if respond_to?(:empty?) && respond_to?(:strip) empty? or strip.empty? elsif respond_to?(:empty?) empty? else !self end end |