In this section, you are going to learn about string manipulation, along with a number of examples of how to integrate string manipulation methods in a Ruby program.
String manipulation guide
What is string manipulation?
So what exactly is string manipulation? It's the process of altering the format or value of a string, usually by leveraging string methods.
String manipulation code examples
Let's start with an example. Let's say I want my application to always display the word Astros in capital letters. To do that, I simply write this:
"Astros"...