Mega Code Archive

 
Categories / Ruby / String
 

Use lstrip, rstrip, and strip (lstrip!, rstrip!, and strip!)

fear = "             F           " puts fear.lstrip