Module: Mail::Encodings::UnixToUnix
- Defined in:
- lib/mail/encodings/unix_to_unix.rb
Constant Summary collapse
- NAME =
"x-uuencode"
Class Method Summary collapse
Class Method Details
.decode(str) ⇒ Object
6 7 8 |
# File 'lib/mail/encodings/unix_to_unix.rb', line 6 def self.decode(str) str.sub(/\Abegin \d+ [^\n]*\n/, '').unpack('u').first end |
.encode(str) ⇒ Object
10 11 12 |
# File 'lib/mail/encodings/unix_to_unix.rb', line 10 def self.encode(str) [str].pack("u") end |