class Stacker::Runtime::Function::MergeDict

Overview

{% set hash = {"foo": "bar"} %}
{% do merge_dict(hash, {"bar": "baz"}) %} #=> {"foo": "bar", "bar": "baz"}

Defined in:

runtime/function/merge_dict.cr

Class Method Summary

Class Method Detail

def self.deep_merge_crinja!(hash, other_hash) #

Recursively merge two Crinja::Value object.

It merges other_hash in hash and returns the modified hash.


[View source]
def self.to_crinja_value(value) #

Convert any value in Crinja::Value.


[View source]