I have a small program that I'm working on that at one point I would like the user to be able to input a potentially multiline response.
I've found the example with
$/ = "END"
user_input = STDIN.gets
puts user_input
But this makes all inputs require the END keyword, which I would only need for the one input.
How can I produce a multi-line input for just the one input?
Ctrl-D. See my answer below.