Ruby strings have a lines method, and it's neato
Ever been working with a string full of new lines?
Ruby has a lines
method for helping with those strings:
"wibble\nwubble".lines
# => ["wibble\n", "wubble"]
"wibble\nwubble".lines(chomp: true)
# => ["wibble", "wubble"]
Tweet