How to define a multiline string in Ruby
Note: The following was tested with Ruby 2.6.6
Keyword: Heredoc
What is heredoc?
Heredoc is used for a form of multiline strings and preserves the line breaks and whitespace (including indentation) in the text.
How to define a heredoc in Ruby?
stri...
lynnbright.com2 min read