Class: Object

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

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) blank?

Don't want to depend on activesupport for this

Returns:

  • (Boolean)


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

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

- (Object) to_dragonfly_unique_s



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

def to_dragonfly_unique_s
  to_s
end