0

I apologise I am sure the answer is out there but I simply cannot articulate it well enough for google search..

Given a long piece of code

puts 'This is a really long line of ruby code here'

How can you separate it over 2 lines, i.e.

puts 'This is a really long
      line of ruby code here'
super_noobling
  • 323
  • 5
  • 11

1 Answers1

1
str = 'first line'\
  ' second line'\
  ' third line'

puts str
Léo
  • 792
  • 1
  • 7
  • 27