Module: TorqueBox::Codecs::EDN

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

Class Method Summary (collapse)

Class Method Details

+ (Object) decode(data)



29
30
31
# File 'core/lib/torquebox/codecs/edn.rb', line 29

def decode(data)
  ::EDN.read(data) unless data.nil?
end

+ (Object) encode(data)



25
26
27
# File 'core/lib/torquebox/codecs/edn.rb', line 25

def encode(data)
  data.to_edn
end