Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/msgpack_config.rb
Overview
Serialize objects to strings by default
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_msgpack(packed) ⇒ Object
| 9 10 11 | # File 'lib/msgpack_config.rb', line 9 def self.from_msgpack(packed) packed.unpack('A*').first end | 
Instance Method Details
#to_msgpack(packer) ⇒ Object
| 5 6 7 | # File 'lib/msgpack_config.rb', line 5 def to_msgpack(packer) packer.pack(to_s) end |