Class: Mail::Encodings::Base64
- Inherits:
-
Object
- Object
- Mail::Encodings::Base64
- Defined in:
- lib/mail/encodings/base64.rb
Class Method Summary collapse
-
.decode(str) ⇒ Object
Decode the string from Base64.
-
.encode(str) ⇒ Object
Encode the string to Base64.
Class Method Details
.decode(str) ⇒ Object
Decode the string from Base64
7 8 9 |
# File 'lib/mail/encodings/base64.rb', line 7 def self.decode(str) RubyVer.decode_base64( str ) end |
.encode(str) ⇒ Object
Encode the string to Base64
12 13 14 |
# File 'lib/mail/encodings/base64.rb', line 12 def self.encode(str) RubyVer.encode_base64( str ) end |