Loader.load

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.

struct Loader
load
@safe
(
)
in { assert (!done_, "Loader: Trying to load YAML twice"); }

Return Value

Type: Node

Root node of the document.

Throws

YAMLException if there wasn't exactly one document or on a YAML parsing error.

Meta