Class: Dddr::MessagePack
- Inherits:
-
Object
- Object
- Dddr::MessagePack
- Defined in:
- lib/dddr.rb
Class Method Summary collapse
Class Method Details
.dump(obj) ⇒ Object
28 29 30 |
# File 'lib/dddr.rb', line 28 def self.dump(obj) obj.to_msgpack end |
.load(obj) ⇒ Object
24 25 26 |
# File 'lib/dddr.rb', line 24 def self.load(obj) ::MessagePack.unpack(obj) end |