D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.1.0
/
gems
/
mail-2.6.4
/
lib
/
mail
/
encodings
/
Filename :
unix_to_unix.rb
back
Copy
# 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