Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby heredoc

# heredoc with stripped indentation
heredoc = <<~TXT.strip
  This is
  a multine string
TXT
#=> "This is
a multine string"
 
PREVIOUS NEXT
Tagged: #ruby #heredoc
ADD COMMENT
Topic
Name
4+7 =