Documentation for Psych to_yaml options?

前端 未结 2 1272
广开言路
广开言路 2021-01-01 11:10

Ruby 1.9.3 defaults to using Psych for YAML. While the ruby-doc documentation for it is completely lacking, I was able to find one external piece of documentation

2条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 11:40

    When you want to disable line wrap, use this option:

    line_width: -1
    

提交回复
热议问题