Articles related to ruby strings
Using Strings and Substrings in Ruby - About.com
Strings are ordered sequences of characters. More simply, strings are variables that can store text. Any communication with users will almost certainly be done ...
String Literals - Ruby - About.com
Strings are most often created with a String literal. A literal is a special syntax in the Ruby language that creates an object of a specific type. For example, 23 is a ...
Splitting Strings in Ruby - the String#split Method - About.com
Unless user input is a single word or number, that input will need to be split, or turned into a list of strings or numbers.
Split and Join - Using Strings in Ruby - About.com
Using the index operator is ideal when you know the location of the portion of the string you want to change. However, it's rare that you'll know the location, ...
Partitioning Strings - Ruby - About.com
When processing strings in Ruby, you probably reach for the 'split' method most often. However, there are other options.
What's new in Ruby 2.1.0: Strings - About.com
Strings. You cannot avoid them. Every program uses strings of some kind. There are a few changes and tweaks you can use to your advantage in Ruby 2.1.0.
String Substitution in Ruby - About.com
Splitting a string is only one way to manipulate string data. You can also make substitutions to replace one part of a string with another string. For instance, in an ...
CSV Example: Format Strings and Printing the ... - Ruby - About.com
This part might need some explanation, as format strings aren't often used in Ruby. Format strings are going to be more familiar to C or perhaps Python ...
Iterating Over Strings - Ruby - About.com
It's not a very common thing in Ruby. You have more sophisticated string tools ( such as split or scan), but there are times when you'd want to iterate over the ...
Using the 'Split' Method in Ruby - About.com
As you may already know, strings in Ruby are what are known as first class objects which use a number of methods for queries and manipulation. (If you don' t ...