Lynn's Dev Blog
  • About
  • Rails
  • Ruby
  • Experience
Sign in Subscribe

TIL

A collection of 1 post
TIL: How to define a multiline string in Ruby
Ruby

TIL: How to define a multiline string in Ruby

Note: The following was tested with Ruby 2.6.6 > Keyword: Heredoc What is heredoc? Heredoc [https://en.wikipedia.org/wiki/Here_document] 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?
Dec 8, 2021 2 min read
Page 1 of 1
Lynn's Dev Blog © 2023
Powered by Ghost