org.gerweck.scala.util
A simple DSL for generating YAML documents.
The entry point is to call Yaml.Write, which takes a map-like syntax. To create nested arrays or maps, use the Yaml.Map or Yaml.Seq generators.
Yaml.Write
Yaml.Map
Yaml.Seq
None of the other types in the package should be used directly.
Example:
Yaml.Write( "a" -> 1, "b" -> Yaml.Map( "b" -> Yaml.Map( "c" -> Yaml.Seq(1, 2, false) ) ) )
A simple DSL for generating YAML documents.
The entry point is to call
Yaml.Write
, which takes a map-like syntax. To create nested arrays or maps, use theYaml.Map
orYaml.Seq
generators.None of the other types in the package should be used directly.
Example: