Skip to content

class YAML::Nodes::Mapping
inherits YAML::Nodes::Node

A mapping of nodes.

Methods

#<<(node)

Appends a single node into this mapping.

View source

#[]=(key, value)

Appends two nodes into this mapping.

View source

#each

Yields each key-value pair in this mapping.

View source

#kind : String

Returns the kind of this node, which is equivalent to the class name.

View source

#nodes : Array(YAML::Nodes::Node)

The nodes inside this mapping, stored linearly as key1 - value1 - key2 - value2 - etc.

View source

#style=(style : MappingStyle)

View source

#to_yaml(builder : YAML::Builder)

View source