Ruby yaml

From wikinotes
Revision as of 20:45, 19 September 2022 by Will (talk | contribs)
require 'yaml'

YAML.load("a: 1")
#> {"a"=>1}

YAML.dump(['a', ['b']], indentation: 2)