Sha256: 8150a51e33cccbc81ae0bddf34dc628d907c5e1d5ebb5aa7b70f27f589e6a681
Contents?: true
Size: 428 Bytes
Versions: 52
Compression:
Stored size: 428 Bytes
Contents
# frozen_string_literal: true module Mail module Encodings class UnixToUnix < TransferEncoding NAME = "x-uuencode" def self.decode(str) str.sub(/\Abegin \d+ [^\n]*\n/, '').unpack('u').first end def self.encode(str) [str].pack("u") end Encodings.register(NAME, self) Encodings.register("uuencode", self) Encodings.register("x-uue", self) end end end
Version data entries
52 entries across 41 versions & 12 rubygems