2016-03-05 44 views
0

我道歉,我相信答案是在那里,但我根本无法表达它不够好,谷歌的搜索..如何在代码中添加一行红宝石

鉴于长一段代码

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

你怎么能在2线分开的,即

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

回答

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

puts str