Sha256: e03d887607de859fdb8d9ba8c7aa1f20c6238dbd50caab0d3a3ea793ecded0d6

Contents?: true

Size: 315 Bytes

Versions: 3

Compression:

Stored size: 315 Bytes

Contents

require 'ffi/msgpack/packer'

module FFI
  module MsgPack
    module Packable
      #
      # Packs a Ruby Object.
      #
      # @return [String]
      #   The packed Object.
      #
      def to_msgpack
        packer = Packer.create
        packer << obj

        return packer.to_s
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffi-msgpack-0.1.2 lib/ffi/msgpack/packable.rb
ffi-msgpack-0.1.1 lib/ffi/msgpack/packable.rb
ffi-msgpack-0.1.0 lib/ffi/msgpack/packable.rb