Mega Code Archive
Categories
/
Ruby
/
String
Center a string
title = "Love's Labours Lost" title.center 23 # => " Love's Labours Lost "