Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
char range « String « Ruby
Ruby
String
char range
1.
Retrieve part of a string with the [] method, using a range.
2.
starting at the end of the string using negative numbers, get the second to last character through the eighth to last
3.
iterate over all the characters using a block
4.
Range indexes are negative