class

Mail::Encodings::TransferEncoding

Inherits Reference < Object

Constants

NAME = ""
PRIORITY = -1

Class methods

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.

Source
can_transport?(enc)

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

Source
compatible_input?(str)
Source
cost(str)
Source
lowest_cost(str, encodings)
Source
negotiate(message_encoding, source_encoding, str, allowed_encodings = nil)
Source
renegotiate(message_encoding, source_encoding, str, allowed_encodings = nil)
Source
to_s

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.

Source