Module: Envoy::Protocol::Serializer

Defined in:
lib/envoy/protocol.rb

Class Method Summary collapse

Class Method Details

.dump(object) ⇒ Object



10
11
12
# File 'lib/envoy/protocol.rb', line 10

def self.dump(object)
  BERT.encode(object)
end

.load(data) ⇒ Object



13
14
15
# File 'lib/envoy/protocol.rb', line 13

def self.load(data)
  BERT.decode(data)
end