Yaml Parser/Reader
Methods
# static dump(data, numIdentsopt) → {string}
Dumps some data as a yaml string.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
any
|
The data | ||
numIdents |
int
|
<optional> |
2 | The indentation |
The Yaml
string
# static load(yaml_string) → {any|null}
Parses a string formatted in yaml.
Parameters:
Name | Type | Description |
---|---|---|
yaml_string |
string
|
The yaml to parse |
null if the yaml could not be parsed
any
|
null