Loader.load

Node load() @safe

Load single YAML document.

If none or more than one YAML document is found, this throws a YAMLException.

This can only be called once; this is enforced by contract.

Returns

Root node of the document.

Throws

YAMLException if there wasn't exactly one document

or on a YAML parsing error.