Annotate Protips with structured data

Work on https://assembly.com/coderwall/bounties/384.

Link to the image with Google Webmaster Tools results.
can you explain please? It's my first Ruby code ever. I never did PHP btw.