class Stacker::Runtime::Function::MergeDict
- Stacker::Runtime::Function::MergeDict
- Reference
- Object
Overview
{% set hash = {"foo": "bar"} %}
{% do merge_dict(hash, {"bar": "baz"}) %} #=> {"foo": "bar", "bar": "baz"}
Defined in:
runtime/function/merge_dict.crClass Method Summary
-
.deep_merge_crinja!(hash, other_hash)
Recursively merge two Crinja::Value object.
-
.to_crinja_value(value)
Convert any value in Crinja::Value.
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.