Introduction
Heredoc lets you write long text across many lines easily, just like writing a paragraph on paper.
<<IDENTIFIER Your multiline text goes here IDENTIFIER
<<TEXT Hello, This is a multiline string. TEXT
<<-DOC Line one Line two DOC
<<~MSG Indented line one Indented line two MSG
message = <<~GREETING
Hello friend,
Welcome to learning Ruby!
Enjoy coding.
GREETING
puts messageheredoc syntax in Ruby?TEXT in Ruby?text = <<~GREETING
Hello,
Welcome to Ruby!
GREETING
puts textmessage = <
Pass the test and this pattern moves unknown