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.
can_transport?(enc)
And encoding's superclass can always transport it since the class hierarchy is arranged e.g. Base64 < 7bit < 8bit < Binary.
compatible_input?(str)
Sourcecost(str)
Sourcelowest_cost(str, encodings)
Sourcenegotiate(message_encoding, source_encoding, str, allowed_encodings = nil)
Sourcerenegotiate(message_encoding, source_encoding, str, allowed_encodings = nil)
Sourceto_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.