From: "nobu (Nobuyoshi Nakada) via ruby-core" Date: 2023-02-20T01:57:55+00:00 Subject: [ruby-core:112496] [Ruby master Feature#19428] Adding a "piped heredoc" feature Issue #19428 has been updated by nobu (Nobuyoshi Nakada). shreeve (Steve Shreeve) wrote in #note-3: > 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. Just an implementation memo. The present flow when reading a heredoc is: 1. save the current line and position 2. read until the terminator line 3. drop the found terminator line 4. rewind to the position saved at 1 5. after the line starting the heredoc, continue from the line next to the terminator. As the "piped heredoc" doesn't have the terminator line, the next line needs to be restored after these. ---------------------------------------- Feature #19428: Adding a "piped heredoc" feature https://bugs.ruby-lang.org/issues/19428#change-101940 * 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 <