Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/carrierwave/core_ext/blank.rb
Overview
blank? methods for several different class types
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Returns true if the object is nil or empty (if applicable).
Instance Method Details
#blank? ⇒ Boolean
Returns true if the object is nil or empty (if applicable)
7 8 9 |
# File 'lib/carrierwave/core_ext/blank.rb', line 7 def blank? nil? || (respond_to?(:empty?) && empty?) end |