class Mail::Encodings::Binary

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/binary.rb, line 24
def self.cost(str)
  1.0
end
decode(str) click to toggle source

Decode the string

# File lib/mail/encodings/binary.rb, line 14
def self.decode(str)
  str
end
encode(str) click to toggle source

Encode the string

# File lib/mail/encodings/binary.rb, line 19
def self.encode(str)
  str
end