module FFI::MsgPack::Packable

Public Instance Methods

to_msgpack() click to toggle source

Packs a Ruby Object.

@return [String]

The packed Object.
# File lib/ffi/msgpack/packable.rb, line 12
def to_msgpack
  packer = Packer.create
  packer << self

  return packer.to_s
end