struct

Stacker::Value

Inherits Struct / Value / Object

Value represents an object inside the Stacker runtime.

It wraps a Crystal value in #raw and defines methods to access properties of the wrapped value while being agnostic about the actual type of the wrapped raw value.

Constructors

Class methods

convert_array(array : Array)

Convert an Array object into a Stacker::Value object.

Source
convert_hash(hash : Hash)

Convert a Hash object into a Stacker::Value object.

Source
deep_merge!(hash, other_hash)

Recursively merge two Stacker::Value object.

It merges other_hash in hash and returns the modified hash.

Source
from_yaml(yaml : String)

Parse yaml and convert the result object into Stacker::Value object.

Source

Instance methods

[](key : String)
Source
[]=(key : String, value)
Source
[]?(key : String)
Source
deep_merge!(other)
Source
delete(*args, **options)
Source
delete(*args, **options, &)
Source
each(*args, **options)
Source
each(*args, **options, &)
Source
to_json(*args, **options)
Source
to_json(*args, **options, &)
Source
to_yaml(*args, **options)
Source
to_yaml(*args, **options, &)
Source

Nested types