Skip to content

Instantly share code, notes, and snippets.

Avatar

Mia Sinek & Trinity Takei miatrinity

View GitHub Profile
View list_building.rb
# original code
# we have an array of strings
#
# we want to build a HTML list, where each string is wrapped in a <li> tag
# <li>s are separated by <hr>s
#
# conventional way: build the result string piece by piece:
#
# starting with the opening <ul> tag
You can’t perform that action at this time.