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