file: yaml.aus

class: yaml

[19:21] static (extern: com.lehman.aussom.stdlib.AussomYaml) extends: object

Yaml class supports parsing and creating YAML documents. Use parse and parseFile to read YAML into Aussom values, and dump, dumpAll, or dumpFile to serialize Aussom values back into YAML text. Multi-document YAML files (separated by ---) are handled through parseAll and dumpAll. The serializer handles all native Aussom types: bool, int, double, string, list, map, null, plus the standard Date and Buffer classes (mapped to YAML timestamps and !!binary respectively). Maps emit keys in alphabetical order so generated YAML is stable across runs, which makes diffs and golden-file tests well-behaved.

Methods