2016-03-05 48 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