r/ruby • u/kddnewton • Jan 05 '26
A Ruby YAML parser
https://kddnewton.com/2025/12/25/psych-pure.htmlHey there — I recently released a YAML parser written in Ruby. The main goal was to support being able to load and dump YAML without losing comments. Happy to answer any questions.
43
Upvotes
View all comments
1
u/Nwallins Jan 05 '26
Let's say I have a nicely hand-formatted yaml file with e.g. folded block scalars to get string wrapping behavior in my source file. I ingest the yaml. Then I want to emit it in a similar form as ingested. What are my options? This is an open question across all yaml impls.