puts <<PARAGRAPH
There's somthing going on here.
With the PARAGRAPH thing
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6 .
PARAGRAPH
這可以正常工作,使用記事本++紅寶石放<<段落
但爲什麼不能工作?
puts <<PARAGRAPH
aaaa Aa
aaa
AA
PARAGRAPH
test.rb:1:語法錯誤,意想不到的tCONSTANT,期待$結束
謝謝!
無論你的片段爲我工作。 – 2012-03-19 15:49:07