class Mail::CommonField

Direct Known Subclasses

Defined in:

mail/fields/common_field.cr

Constant Summary

FILENAME_RE = /\b(filename|name)=([^;"\r\n]+\s[^;"\r\n]+)/

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(value = nil, charset = nil) #

[View source]

Class Method Detail

def self.parse(*args) #

[View source]
def self.singular? #

[View source]

Instance Method Detail

def charset : String | Nil #

[View source]
def charset=(charset : String | Nil) #

[View source]
def decoded #

[View source]
def default #

[View source]
def do_decode #

[View source]
def do_encode #

[View source]
def element #

[View source]
def element=(element) #

[View source]
def encoded #

[View source]
def errors : Array(Array(Mail::Field::ParseError | String)) #

[View source]
def errors=(errors : Array(Array(String | Field::ParseError))) #

[View source]
def main_type #

[View source]
def mime_type #

[View source]
def name : String | Nil #

[View source]
def name=(name : String | Nil) #

[View source]
def parameters #

[View source]
def parse #

[View source]
def responsible_for?(field_name) #

[View source]
def singular? #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]
def value : String | Nil #

[View source]
def value=(value) #

[View source]