Sha256: a460c54c03fd035a3b5e099d0a2ae3ab1d53d066415e624527eca1e51c69b9f6
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
# encoding: utf-8 module Mail module Encodings class Binary < TransferEncoding NAME = 'binary' PRIORITY = 5 # Binary is an identiy encoding, meaning nothing to do # Decode the string def self.decode(str) str end # Encode the string def self.encode(str) str end # Idenity encodings have a fixed cost, 1 byte out per 1 byte in def self.cost(str) 1.0 end Encodings.register(NAME, self) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mail-2.1.5 | lib/mail/encodings/binary.rb |