class

YAML::Nodes::Document

Inherits YAML::Nodes::Node / Reference / Object

A YAML document.

Instance methods

<<(node)

Appends a node to this document. Raises if more than one node is appended.

Source
kind

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

Source
nodes

The nodes inside this document.

A document can hold at most one node.

Source
to_yaml(builder : YAML::Builder) : Nil
Source