Devin Mullins wrote: > benjohn / fysh.org wrote: > > Anyone know when you do and don't need to place ''s around the string > > terminator? > '' tells Ruby not to interpolate, while the default (without quotes) is > to do so. You can also use quotes (single or double) to use a more funky > delimiter. - lets you indent the ending delimiter. The above is correct, unlike (I think) some other answers in this thread. To be clear about it: a = <<FOO a#{1+1} FOO b = <<'FOO' b#{1+1} FOO c = <<"FOO" c#{1+1} FOO d = <<-FOO d#{1+1} FOO e = <<-'FOO' e#{1+1} FOO f = <<-"FOO" f#{1+1} FOO puts a, b, c, d, e, f #=> 2 #=> #{1+1} #=> 2 #=> 2 #=> #{1+1} #=> 2