dorian-yaml-all
Run one Ruby snippet against the whole YAML value.
Install
gem install dorian-yaml-allAlso included in the aggregate gem:
gem install dorianUsage
yaml-all [file ...] "ruby code"Run yaml-all -h for generated option details and yaml-all -v for the installed version.
Notes
- Sets
itto the parsed YAML value converted to deep structs.
Examples
Print a top-level value
printf 'name: Dorian\n' | yaml-all "puts it.name"Output:
Dorian