Articles related to arrays and hashes
Creating Hashes from Arrays - Ruby - About.com
However, the code you need to interface with expects an array of hashes, keys being column names and values being the value for that row and column. What's ...
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 ...
Method for Mapping the Values of an Array - Ruby - About.com
Say you have an array of symbols, as well as a hash. For each symbol in the array, you want to look up that symbol in the hash and add the value from the hash ...
Hashes - Ruby - About.com
A Hash is a type of data structure that matches keys with values. Where as an array is indexed with integers, that is the data is in order and indexed by their ...
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, ...
How to Create Arrays in Ruby - A Basic Guide - About.com
This article explains and teaches how to use a arrays as a way to store multiple ... Guide to Creating and Using Hashes in Ruby · How to Create Arrays in Ruby ...
Serialized Hashes - Ruby - About.com
A hash is an associative array. Instead of using numerical indexes, any object ( but typically symbols) can be used. They can be both a fast way to retrieve an ...
How to Make Deep Copies in Ruby - About.com
While this may seem simple, and it is for simple objects, as soon as you have to make a copy of a data structure with multiple array or hashes on the same object, ...
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.