Call capitalize function from string class : capitalize « String « Ruby






Call capitalize function from string class



"Test".capitalize 

 

Related examples in the same category

1.Capitalize the result with the capitalize method, if you want
2.Add two method to string class to capitalize first letter