2009年5月3日 星期日

mutli line in ruby string

string1="<<"NEF
welcome to use ruby language
nice to meet you
NEF

puts string1

string2=%q{
welcome to use ruby language
nice to meet you
}

puts string2

string3=%q!
welcome to use ruby language
nice to meet you
!

puts string3

沒有留言:

張貼留言