module MessagePack
MessagePack
extention packer and unpacker for built-in Time
class
Constants
- DefaultFactory
- VERSION
Public Class Methods
Source
# File lib/msgpack.rb, line 22 def load(src, param = nil) unpacker = nil if src.is_a? String unpacker = DefaultFactory.unpacker param unpacker.feed_reference src else unpacker = DefaultFactory.unpacker src, param end unpacker.full_unpack end
Also aliased as: unpack
Source
# File lib/msgpack.rb, line 39 def pack(v, io = nil, options = nil) packer = DefaultFactory.packer(io, options) packer.write v packer.full_pack end
Also aliased as: dump
Private Instance Methods
Source
# File lib/msgpack.rb, line 22 def load(src, param = nil) unpacker = nil if src.is_a? String unpacker = DefaultFactory.unpacker param unpacker.feed_reference src else unpacker = DefaultFactory.unpacker src, param end unpacker.full_unpack end
Also aliased as: unpack
Source
# File lib/msgpack.rb, line 39 def pack(v, io = nil, options = nil) packer = DefaultFactory.packer(io, options) packer.write v packer.full_pack end
Also aliased as: dump