module Utility

Public Class Methods

decode(str) click to toggle source
# File lib/utility/utility.rb, line 64
def self.decode(str)
  Marshal.load(Base64.decode64(str))
end
encode(obj) click to toggle source
# File lib/utility/utility.rb, line 68
def self.encode(obj)
  Base64.encode64(Marshal.dump(obj)).strip
end