Skip to content

abstract class Athena::MIME::Header::Abstract(T)
inherits Reference #

Base type of all headers that provides common utilities and abstractions.

Included modules

Athena::MIME::Header::Interface

Direct known subclasses

Athena::MIME::Header::Date Athena::MIME::Header::Identification Athena::MIME::Header::Mailbox Athena::MIME::Header::MailboxList Athena::MIME::Header::Path Athena::MIME::Header::Unstructured

Constructors#

.new(name : String)#

Methods#

abstract #body : T#

Returns the body of this header.

abstract #body=(body : T)#

Sets the body of this header.

#charset : String#

Sets the character set used in this header. Defaults to UTF-8.

#charset=(charset : String)#

Sets the character set used in this header. Defaults to UTF-8.

#clone#

Returns a copy of self with all instance variables cloned.

#lang : String | ::Nil#

Sets the language used in this header. E.g. en-us.

#lang=(lang : String | Nil)#

Sets the language used in this header. E.g. en-us.

#max_line_length : Int32#

Controls how long each header line may be before needing wrapped. Defaults to 76.

#max_line_length=(max_line_length : Int32)#

Controls how long each header line may be before needing wrapped. Defaults to 76.

#name : String#

Returns the name of the header.