Mega Code Archive

 
Categories / Ruby / String
 

Another way to build up a long string literal is by using a here document

x = <<END_MY_STRING_PLEASE This is the string And a second line END_MY_STRING_PLEASE puts x