Mega Code Archive

 
Categories / Ruby / String
 

Use another character besides the default space character if youd like

title = "Love's Labours Lost" puts title.rjust( 21, "-" )