Class: Mail::Encodings::SevenBit
- Inherits:
-
EightBit
- Object
- TransferEncoding
- Identity
- Binary
- EightBit
- Mail::Encodings::SevenBit
- Defined in:
- lib/mail/encodings/7bit.rb
Overview
7bit and 8bit are equivalent. 7bit encoding is for text only.
Direct Known Subclasses
Constant Summary collapse
- NAME =
'7bit'- PRIORITY =
1
Class Method Summary collapse
Methods inherited from EightBit
Methods inherited from Identity
Methods inherited from TransferEncoding
can_encode?, can_transport?, compatible_input?, cost, lowest_cost, negotiate, renegotiate, to_s
Class Method Details
.decode(str) ⇒ Object
13 14 15 |
# File 'lib/mail/encodings/7bit.rb', line 13 def self.decode(str) ::Mail::Utilities.binary_unsafe_to_lf str end |
.encode(str) ⇒ Object
17 18 19 |
# File 'lib/mail/encodings/7bit.rb', line 17 def self.encode(str) ::Mail::Utilities.binary_unsafe_to_crlf str end |