Class: Object

Inherits:
BasicObject
Defined in:
lib/carrierwave/core_ext/blank.rb

Overview

blank? methods for several different class types

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns true if the object is nil or empty (if applicable)

Returns:

  • (Boolean)


7
8
9
# File 'lib/carrierwave/core_ext/blank.rb', line 7

def blank?
  nil? || (respond_to?(:empty?) && empty?)
end