Class: Object

Inherits:
BasicObject
Defined in:
lib/dragonfly/core_ext/object.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Will eventually get this by cherry-picking from activesupport

Returns:

  • (Boolean)


4
5
6
# File 'lib/dragonfly/core_ext/object.rb', line 4

def blank?
  respond_to?(:empty?) ? empty? : !self
end