Class: Object

Class | Object
In: | lib/action_mailer/vendor/tmail-1.1.0/tmail/core_extensions.rb
Parent: | Object

Check first to see if we are in a Rails environment, no need to define these methods if we are

### Methods

blank?

### Public Instance methods

blank?()

An object is blank if it‘s nil, empty, or a whitespace string. For example, "", " ", nil, [], and {} are blank.

This simplifies

      if !address.nil? && !address.empty?

to

      if !address.blank?

[Validate]