return <<-HTML
Link-Title
HTML
What are <<-HTML on the first lin
To explicitly answer the question, this snippet returns the string:
<li>
<a href = "some-link">Link-Title</a>
</li>
It's a heredoc.
http://en.wikipedia.org/wiki/Here_document#Ruby
That's a here document. Basically, it's a multi-line string literal.
On lines after the line with the <<-HTML
, those are literal strings concatenated by newlines-- until the end marker is reached, which in this case is HTML
.