Class: Scl::Base64

Inherits:
Format show all
Defined in:
lib/scl/formats/base64.rb

Constant Summary

Constants inherited from Format

Format::AUTO, Format::BASE64, Format::BINARY, Format::HEX, Format::QRCODE, Format::STDOUT, Format::WORDS

Instance Method Summary collapse

Methods inherited from Format

#name, #output, #read

Instance Method Details

#decode(data) ⇒ Object



8
9
10
# File 'lib/scl/formats/base64.rb', line 8

def decode(data)
  ::Base64.decode64(data)
end

#encode(data) ⇒ Object



4
5
6
# File 'lib/scl/formats/base64.rb', line 4

def encode(data)
  ::Base64.encode64(data)
end