concatenate a string to the result : downcase « String « Ruby






concatenate a string to the result



taf = "That's ".downcase * 3 + "all folks!" 
taf.capitalize 

 

Related examples in the same category

1.Call downcase function from string class
2.Adding a call to capitalize onto the statement.