class Mail::Encodings::EightBit

Constants

NAME
PRIORITY

Public Class Methods

cost(str) click to toggle source

Idenity encodings have a fixed cost, 1 byte out per 1 byte in

# File lib/mail/encodings/8bit.rb, line 23
def self.cost(str)
  1.0
end
decode(str) click to toggle source

Decode the string

# File lib/mail/encodings/8bit.rb, line 13
def self.decode(str)
  str.to_lf
end
encode(str) click to toggle source

Encode the string

# File lib/mail/encodings/8bit.rb, line 18
def self.encode(str)
  str.to_crlf
end