struct

MessagePack::Any

Inherits Struct / Value / Object

A wrapper around a MessagePack object with convenience methods for type conversions

Constructors

Instance methods

==(*args, **options)
Source
==(*args, **options, &)
Source
[](key : Symbol) : Any
Source
[](key : Type) : Any
Source
[]?(key : Type) : Any | Nil
Source
as_a

Convert to Array(MessagePack::Type)

Source
as_a?

Maybe convert to Array(MessagePack::Type)?

Source
as_bool

Convert to Bool

Source
as_bool?

Maybe convert to Bool?

Source
as_f

Convert to Float64

Source
as_f?

Maybe convert to Float64?

Source
as_h

Convert to Hash(MessagePack::Type, MessagePack::Type)

Source
as_h?

Maybe convert to Hash(MessagePack::Type, MessagePack::Type)?

Source
as_i
Source
as_i16

Convert to Int16

Source
as_i16?

Maybe convert to Int16?

Source
as_i32

Convert to Int32

Source
as_i32?

Maybe convert to Int32?

Source
as_i64

Convert to Int64

Source
as_i64?

Maybe convert to Int64?

Source
as_i8

Convert to Int8

Source
as_i8?

Maybe convert to Int8?

Source
as_i?
Source
as_nil

Convert to Nil

Source
as_nil?

Maybe convert to Nil?

Source
as_s

Convert to String

Source
as_s?

Maybe convert to String?

Source
as_u
Source
as_u16

Convert to UInt16

Source
as_u16?

Maybe convert to UInt16?

Source
as_u32

Convert to UInt32

Source
as_u32?

Maybe convert to UInt32?

Source
as_u64

Convert to UInt64

Source
as_u64?

Maybe convert to UInt64?

Source
as_u8

Convert to UInt8

Source
as_u8?

Maybe convert to UInt8?

Source
as_u?
Source
clone
Source
dig(key : Type)
Source
dig(key : Type, *subkeys)
Source
dig?(key : Type, *subkeys)
Source
dup

Returns a shallow copy of this object.

Because Value is a value type, this method returns self, which already involves a shallow copy of this object because value types are passed by value.

Source
each
Source
inspect(*args, **options)
Source
inspect(*args, **options, &)
Source
size
Source
to_msgpack(packer : MessagePack::Packer)
Source
to_s(*args, **options)
Source
to_s(*args, **options, &)
Source

Macros

method_missing(call)
Source