class Ruby::Marshal::Hash

Overview

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

Direct Known Subclasses

Defined in:

ruby-marshal/stream_objects/hash.cr

Constructors

Instance Method Summary

Macro Summary

Instance methods inherited from class Ruby::Marshal::StreamObject

size : Int32 size, stream_size stream_size

Constructor methods inherited from class Ruby::Marshal::StreamObject

new(size : Int32) new

Constructor Detail

def self.new(stream : Bytes) #

[View source]

Instance Method Detail

def [](requested_key : ::String) #

[View source]
def [](requested_key : Int32) #

[View source]

[View source]
def default_value : Ruby::Marshal::StreamObject #

[View source]
def each(&) #

[View source]
def raw_hash : ::Hash(RawHashObjects, RawHashObjects) #

[View source]
def read(stream : Bytes) #

instantiate the class if it exists and assign to @data


[View source]

Macro Detail

macro add_hash_accessor(klass) #

[View source]