Class: Object

Inherits:
BasicObject
Defined in:
lib/mail/core_extensions/object.rb

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


5
6
7
8
9
10
11
# File 'lib/mail/core_extensions/object.rb', line 5

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