1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

Using Strings


Strings are ordered sequences of characters. More simply, strings are variables that can store text. Any communication with users will almost certainly be done by using strings, either as they are displayed on a terminal or in a GUI application. For example, if your program requires a user to input his name, the sequence of characters that make up his name are a string and are stored as a variable. Next to numbers, the String is one of the most important and widely used type in Ruby.

  1. About.com
  2. Technology
  3. Ruby
  4. Beginning Ruby
  5. Using Strings and Substrings in Ruby

©2014 About.com. All rights reserved.