return <<-HTML <li> <a href = "some-link">Link-Title</a> </li> HTML
What are <<-HTML on the first line and HTML on the last line for?
It's a heredoc.
http://en.wikipedia.org/wiki/Here_document#Ruby
2.1m questions
2.1m answers
60 comments
57.0k users