How to write multiline string without concatenation in Ruby

1 Answer

0 votes
s = 'Ruby is an interpreted,'\
    ' high-level, general-purpose'\
    ' programming language.'

puts s



# run:
#
# Ruby is an interpreted, high-level, general-purpose programming language.
#

 



answered Dec 20, 2020 by avibootz
...