yaml_incomplete v0.1.1 YamlIncomplete

A very barebone YAML dumper. Not a YAML parser. Converts a data structure to YAML if:

  • no tuples involved;
  • no structs.

Only handles Maps or Lists of Integers, Strings and nil.

Examples

iex> YamlIncomplete.to_yaml(%{a: [1, 2]})
"---
:a:
- 1
- 2
"

Link to this section Summary

Link to this section Functions

Link to this function

to_yaml(term, indent)

Converts maps to yaml.