module HCL::Serializable::Unmapped
Overview
Modifies behavior of HCL::Serializable
such that unknown attributes and
blocks in the HCL document will be stored in respective
Hash(String, HCL::AST::Node)
. For classes/structs representing blocks,
any unmapped labels will be stored in a Hash(Int32, HCL::AST::Node)
, where
the key is the label index. On serialization, any keys inside
#hcl_unmapped_attributes
, #hcl_unmapped_blocks
, and #hcl_unmapped_labels
will be serialized and appended to the current HCL block or document.
The deserialied values are AST nodes in order to allow for later evaluation,
perhaps with a different expression context than the original document.
Defined in:
hcl/serializable.crInstance Method Summary
-
#hcl_unmapped_attributes
Unmapped attribute nodes.
-
#hcl_unmapped_attributes=(hcl_unmapped_attributes)
Unmapped attribute nodes.
-
#hcl_unmapped_blocks
Unmapped block node groups.
-
#hcl_unmapped_blocks=(hcl_unmapped_blocks)
Unmapped block node groups.
-
#hcl_unmapped_labels
Unmapped label nodes.
-
#hcl_unmapped_labels=(hcl_unmapped_labels)
Unmapped label nodes.
Instance Method Detail
Unmapped attribute nodes. Key is the name of the attribute. Value is the AST node
Unmapped attribute nodes. Key is the name of the attribute. Value is the AST node
Unmapped block node groups. Key is the ID/type of the block. Value is the AST node.
Unmapped block node groups. Key is the ID/type of the block. Value is the AST node.
Unmapped label nodes. Key is the index of the label. Value is the AST
node. This will only be populated for classes/structs represented as
blocks in another class/struct implementing HCL::Serializable
.
Unmapped label nodes. Key is the index of the label. Value is the AST
node. This will only be populated for classes/structs represented as
blocks in another class/struct implementing HCL::Serializable
.