Sha256: f55c6c15b3115d17b130d9bd99dd4e6d0182622f56c3b0d7366c2debfc233243
Contents?: true
Size: 625 Bytes
Versions: 24
Compression:
Stored size: 625 Bytes
Contents
module MessagePack # MessagePack::Time provides packer and unpacker functions for a timestamp type. # @example Setup for DefaultFactory # MessagePack::DefaultFactory.register_type( # MessagePack::Timestamp::TYPE, # Time, # packer: MessagePack::Time::Packer, # unpacker: MessagePack::Time::Unpacker # ) class Time # A packer function that packs a Time instance to a MessagePack timestamp. Packer = lambda { |payload| # ... } # An unpacker function that unpacks a MessagePack timestamp to a Time instance. Unpacker = lambda { |time| # ... } end end
Version data entries
24 entries across 24 versions & 2 rubygems