Module: MessagePack
- Defined in:
- lib/msgpack/time.rb,
lib/msgpack.rb,
lib/msgpack/packer.rb,
lib/msgpack/factory.rb,
lib/msgpack/version.rb,
lib/msgpack/core_ext.rb,
lib/msgpack/core_ext.rb,
lib/msgpack/unpacker.rb,
lib/msgpack/timestamp.rb,
ext/msgpack/rbinit.c
Overview
MessagePack extention packer and unpacker for built-in Time class
Defined Under Namespace
Modules: CoreExt, Time, TypeError
Classes: Buffer, Factory, MalformedFormatError, Packer, StackError, Timestamp, UnexpectedTypeError, UnknownExtTypeError, UnpackError, Unpacker
Constant Summary
collapse
- DefaultFactory =
MessagePack::Factory.new
- DEFAULT_EMPTY_PARAMS =
{}.freeze
- VERSION =
"1.3.1"
- ExtensionValue =
cMessagePack_ExtensionValue
Class Method Summary
collapse
Class Method Details
.dump ⇒ Object
49
50
51
52
53
|
# File 'lib/msgpack.rb', line 49
def pack(v, *rest)
packer = DefaultFactory.packer(*rest)
packer.write v
packer.full_pack
end
|
.load(src, param = nil) ⇒ Object
.pack(v, *rest) ⇒ Object
44
45
46
47
48
|
# File 'lib/msgpack.rb', line 44
def pack(v, *rest)
packer = DefaultFactory.packer(*rest)
packer.write v
packer.full_pack
end
|