class Mail::Encodings::TransferEncoding
- Mail::Encodings::TransferEncoding
- Reference
- Object
Direct Known Subclasses
Defined in:
mail/encodings/transfer_encoding.crConstant Summary
-
NAME =
""
-
PRIORITY =
-1
Class Method Summary
-
.can_encode?(enc)
Override in subclasses to indicate that they can encode text that couldn't be directly transported, e.g.
-
.can_transport?(enc)
And encoding's superclass can always transport it since the class hierarchy is arranged e.g.
- .compatible_input?(str)
- .cost(str)
- .lowest_cost(str, encodings)
- .negotiate(message_encoding, source_encoding, str, allowed_encodings = nil)
- .renegotiate(message_encoding, source_encoding, str, allowed_encodings = nil)
-
.to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Class Method Detail
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.
And encoding's superclass can always transport it since the class hierarchy is arranged e.g. Base64 < 7bit < 8bit < Binary.
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
.