Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/string_base64.rb
Instance Method Summary collapse
-
#to_base64 ⇒ String
Convert string to Base64 representation.
-
#to_base64_decode ⇒ String
Convert Base64 to string representation.
Instance Method Details
#to_base64 ⇒ String
Convert string to Base64 representation
8 9 10 |
# File 'lib/string_base64.rb', line 8 def to_base64 Base64.encode64(self) end |
#to_base64_decode ⇒ String
Convert Base64 to string representation
14 15 16 |
# File 'lib/string_base64.rb', line 14 def to_base64_decode Base64.decode64(self) end |