I've come across this a few times, but never really understood it. Can someone explain to me how this syntax creates a string?
STRING = <<-EOS
This is a string!!
EOS
puts STRING
=> "This is a string!!"
As first I thought there was something special about the <<-EOS, but it actually appears to work with any char. <<x for instance also works
Can someone explain to me what exactly this syntax means? And how it is that a string is created?