class MIME::Multipart::Alternative

The Alternative subtype indicates that each contained entity is an alternatively formatted version of the same content.

In general, when composing multipart/alternative entities, add the body parts in increasing order of preference; that is, with the preferred format last. For example, to prioritize for fancy text, add the plainest format first and the richest format last. Typically, receiving user agents select the last format they are capable of displaying or interpreting.

Public Class Methods

new() click to toggle source

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

Calls superclass method
# File lib/mime/composite_media.rb, line 160
def initialize