ruby/psych

Feature: configure block scalar type

wscourge opened this issue · 0 comments

I'd like to be able to do the following:

{
  long_string_content: "This is a very long string that I want to display in a literal block in my YAML output"
}.to_yaml(fold: "|")

With acceptable :fold basic values: |, >, and other combinations such as |- or >+.

Inspired by this SO answer