From: "shreeve (Steve Shreeve) via ruby-core" Date: 2023-02-10T04:49:34+00:00 Subject: [ruby-core:112324] [Ruby master Feature#19428] Adding a "piped heredoc" feature Issue #19428 has been updated by shreeve (Steve Shreeve). ``` options = { name: "My Nice Options", description: <<|, | This is a cool set of options. | You Can put what you like here. details: <<|, | Some more stuff here... | This will only be indented 2 spaces. | And this 4 spaces. | And this 2 spaces again. | Back to the "left" side. ``` To me, this option is "harder" because you have to make sure to go back and add the character and make sure that it's lined up. One nice thing about the piped heredoc is that you can simply copy and paste and indent to the correct level. So, it keeps code very clean and simple and you can also copy it from there to another location with no extra work. The parser is already doing the work to be "looking for" the end of the heredoc, so detecting a "dedent/undent" is sufficient for the parser to know that the heredoc is complete. ---------------------------------------- Feature #19428: Adding a "piped heredoc" feature https://bugs.ruby-lang.org/issues/19428#change-101769 * Author: shreeve (Steve Shreeve) * Status: Open * Priority: Normal ---------------------------------------- Hello, I hope this is the correct place to post a small feature request. HEREDOC's are awesome! There are several used within Ruby: ```ruby <