Sha256: e044b7e43dc90f4f46a381abe9bb02b4d2353189b2105a3b5a3c80194f6a29ed
Contents?: true
Size: 327 Bytes
Versions: 23
Compression:
Stored size: 327 Bytes
Contents
# frozen_string_literal: true module Mail module Encodings module UnixToUnix 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) end end end
Version data entries
23 entries across 21 versions & 6 rubygems