Mega Code Archive
Categories
/
Ruby
/
String
Add to both sides
title = "Love's Labours Lost" title.rjust(20, "-").ljust(21, "-")