Try the following:
$/ = "END"
user_input = STDIN.gets
puts user_input
The user can continue to enter multiple-line input and end his input by entering END. Keep in mind that IRB does not handle this piece of code very well, so make sure you use the actual ruby ββinterpreter.
, user_input END, , . END, , .