Sha256: 345d1e271aca875c5bf6dc816cc9e06c0576c2d989651445558d272094571ab6

Contents?: true

Size: 280 Bytes

Versions: 3

Compression:

Stored size: 280 Bytes

Contents

require "msgpack"

module MessageQueue
  module Serializers
    class MessagePack < Serializer
      def load(string, options = {})
        ::MessagePack.unpack(string)
      end

      def dump(object, options = {})
        ::MessagePack.pack(object)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
message_queue-0.0.4 lib/message_queue/serializers/message_pack.rb
message_queue-0.0.3 lib/message_queue/serializers/message_pack.rb
message_queue-0.0.2 lib/message_queue/serializers/message_pack.rb