(on Wikipedia)
https://yaml.org/ [ 1 ]
A human-friendly data serialization standard for all programming languages.
-
YAML: YAML Ain’t Markup Language
Table of Contents [hide]
Simple Example ∞
Dump ∞
require 'yaml' variable = [ 1, 2, 'three' ] variable = YAML::dump( variable ) puts variable.inspect # => # "--- \n- 1\n- 2\n- three\n"
Load ∞
require 'yaml' variable = [ 1, 2, 'three' ] variable = YAML::dump( variable ) puts variable.inspect # => # "--- \n- 1\n- 2\n- three\n" variable = YAML::load( variable ) puts variable.inspect # => # [1, 2, "three"]
