Class: Object

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

Overview

This is not loaded if ActiveSupport is already loaded

Instance Method Summary collapse

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


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

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