Module: Ronin::Support::Encoding::UUEncoding
- Defined in:
- lib/ronin/support/encoding/uuencoding.rb
Overview
Contains methods for encoding/decoding UUEncoded data.
Core-Ext Methods
Class Method Summary collapse
-
.decode(data) ⇒ String
Decodes the UUEncoded String.
-
.encode(data) ⇒ String
UUEncodes the String.
Class Method Details
.decode(data) ⇒ String
Decodes the UUEncoded String.
69 70 71 |
# File 'lib/ronin/support/encoding/uuencoding.rb', line 69 def self.decode(data) data.unpack1('u') end |
.encode(data) ⇒ String
UUEncodes the String.
50 51 52 |
# File 'lib/ronin/support/encoding/uuencoding.rb', line 50 def self.encode(data) [data].pack('u') end |