String from right inplace : Strip from right « String « Ruby






String from right inplace


fear = "             F                  "


p fear.rstrip! 
puts fear

 








Related examples in the same category