class

Ruby::Marshal::Hash

Inherits Ruby::Marshal::StreamObject < Reference < Object

For a Hash with a default value, the default value follows all the pairs.

Constructors

new(stream : Bytes)
Source

Instance methods

[](requested_key : ::String)
Source
[](requested_key : Int32)
Source
data
Source
default_value
Source
each
Source
raw_hash
Source
read(stream : Bytes)

instantiate the class if it exists and assign to @data

Source

Macros

add_hash_accessor(klass)
Source

Nested types