Class: Object

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

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Don't want to depend on activesupport for this


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

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

#to_dragonfly_unique_sObject


8
9
10
# File 'lib/dragonfly/core_ext/object.rb', line 8

def to_dragonfly_unique_s
  to_s
end