Class: MIME::Multipart::Alternative

Inherits:
MIME::Multipart show all
Defined in:
lib/mime/composite_media.rb

Overview

The Alternative subtype indicates that each contained entity is an alternatively formatted version of the same content. The most complex version should be added to the message first, i.e. it will be sequentially last in the message.

Instance Attribute Summary

Attributes inherited from CompositeMedia

#boundary

Attributes inherited from MIME::Media

#body, #headers

Attributes included from Headers::MIME

#description, #disposition, #id, #mime_version, #transfer_encoding, #type

Instance Method Summary collapse

Methods inherited from CompositeMedia

#add, #attach, #inline

Methods inherited from MIME::Media

#to_s

Constructor Details

#initializeAlternative

Returns a Multipart::Alternative object with a content type of multipart/alternative.



156
157
158
# File 'lib/mime/composite_media.rb', line 156

def initialize
  super('alternative')
end