Articles related to arrays and hashes
Creating Hashes from Arrays - Ruby - About.com
How do you create hashes from tabular data? There are a few ways, but there's a way built into Ruby that fits onto a single line.
How to Create and Use Hashes in Ruby - About.com
This article explains and teaches how to use a associative arrays (hashes) as a way to store multiple variables in one data structure.
Building Hashes From Arrays - Ruby - About.com
It's often useful to build hashes from an array. This can be done easily using the Hash[ … ] syntax. It'll take an unlimited number of arguments (as long as it's an ...
Everything You Wanted To Know About Hashes - Ruby - About.com
Hashes are the bread and butter of Ruby data structures. For any unordered structure, you'll find hashes used everywhere. If it's ordered, you'll see arrays used, ...
Hashes - Ruby - About.com
This all comes down to how hashes (also called "associative arrays") work. Hashes are a tree structure of smaller arrays. In memory, the tree structure is index by ...
Ruby's Basic Features: Blocks, Loops, Arrays & more - About.com
This article explains and teaches how to use a associative arrays (hashes) as a way to ... There's more to do with hashes than just store and retrieve objects.
Mapping Arrays - Ruby - About.com
Iterating over arrays isn't the only trick up Ruby's sleeve. Having the ability to map arrays (and other enumerable collections) is a powerful feature.
Using JSON: Structure of a JSON Document - Ruby - About.com
Also, unlike XML, JSON sticks to Arrays and Hashes for its document structure, whereas XML is much more free-form. While this may sound like a disadvantage ...
Introduction to Arrays - Ruby - About.com
In fact, it's quite odd that you may have learned about Hashes before Arrays as many Ruby programmers do. In many languages, the Hash is a rather small ...
How to Make Deep Copies in Ruby - About.com
It will only be as deep as the first array, any deeper arrays, hashes or other object will only be shallow copied. There is another method worth mentioning, clone.