Working with Strings
Learn about the variables of String type and how you can operate with them in Ruby.
A String
object represents text
A String
object, or simply string, is an object that represents a specific text. For example, your name is represented as one string in Ruby. The title of this text is another string, and so is this paragraph, as is this full text.
Strings are everywhere in web applications. In fact, they’re used far more often than numbers. That’s probably because most popular applications deal with descriptive text (Email, Facebook, Twitter, Amazon, eBay, and so on).
Another example are those complicated web-based calculator applications that deal with numbers. ...