Ruby language and standard library reference.
Get a subset of items or characters based on a range
Make an array of parts of a string based on a delimiter