Module: Otaku::Encoder
- Defined in:
- lib/otaku/encoder.rb
Class Method Summary collapse
Class Method Details
.decode(thing) ⇒ Object
9 10 11 |
# File 'lib/otaku/encoder.rb', line 9 def decode(thing) Marshal.load(Base64.decode64(thing)) end |
.encode(thing) ⇒ Object
5 6 7 |
# File 'lib/otaku/encoder.rb', line 5 def encode(thing) Base64.encode64(Marshal.dump(thing)) end |