Module: TorqueBox::Codecs::Marshal

Defined in:
core/lib/torquebox/codecs/marshal.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) decode(data)



28
29
30
# File 'core/lib/torquebox/codecs/marshal.rb', line 28

def decode(data)
  ::Marshal.restore(data) unless data.nil?
end

+ (Object) encode(data)



24
25
26
# File 'core/lib/torquebox/codecs/marshal.rb', line 24

def encode(data)
  ::Marshal.dump(data) unless data.nil?
end