class Mail::Encodings::TransferEncoding

Direct Known Subclasses

Defined in:

mail/encodings/transfer_encoding.cr

Constant Summary

NAME = ""
PRIORITY = -1

Class Method Summary

Class Method Detail

def self.can_encode?(enc) #

Override in subclasses to indicate that they can encode text that couldn't be directly transported, e.g. Base64 has 7bit output, but it can encode binary.


[View source]
def self.can_transport?(enc) #

And encoding's superclass can always transport it since the class hierarchy is arranged e.g. Base64 < 7bit < 8bit < Binary.


[View source]
def self.compatible_input?(str) #

[View source]
def self.cost(str) #

[View source]
def self.lowest_cost(str, encodings) #

[View source]
def self.negotiate(message_encoding, source_encoding, str, allowed_encodings = nil) #

[View source]
def self.renegotiate(message_encoding, source_encoding, str, allowed_encodings = nil) #

[View source]
def self.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]