Module: BBQueue::Serializer

Defined in:
lib/bbqueue/serializer.rb

Class Method Summary collapse

Class Method Details

.dump(object) ⇒ Object



6
7
8
# File 'lib/bbqueue/serializer.rb', line 6

def self.dump(object)
  Base64.strict_encode64 Marshal.dump(object)
end

.load(object) ⇒ Object



10
11
12
# File 'lib/bbqueue/serializer.rb', line 10

def self.load(object)
  Marshal.load Base64.strict_decode64(object)
end