1. Computing

Discuss in my forum

Michael Morin

Ruby July 2012 Archive

By , About.com Guide

Follow me on:

Hash Tips and Tricks

Tuesday July 31, 2012
Hashes have a bit more than meets the eye.  This is a small collection of Hash tips and tricks.  Some of them are useful, others are simply amusing.  But all ... Read More

Hash Reference

Tuesday July 31, 2012
This is a handy reference for some of the most common and useful methods in the Hash class.  There are others detailed in the official documentation, but these are the ... Read More

Creating Hashes from Arrays

Tuesday July 31, 2012
If your data is sitting in Arrays, but your code needs Hashes, how do you get the two together?  You could just loop over the arrays and build the hashes, ... Read More

Advanced Hash Usage

Tuesday July 31, 2012
There's more than one thing you can do with hashes.  Sure, you can store and retrieve key/value pairs, but you can also do things like emulate keyword parameters.

Hashes

Monday July 30, 2012
Hashes.  Associative arrays.  Key/value stores.  You cannot avoid them.  They're just everywhere in Ruby.  But many Ruby programmers learn about them by example, copying what they see in other Ruby ... Read More

Why Does 'map' Return an Array?

Tuesday July 24, 2012
Why does the 'map' method always return an Array?  It doesn't matter what you call it on, even for Hashes and subclasses of Array, the 'map' method always returns a ... Read More

The Ruby on Rails Router

Tuesday July 17, 2012
The router is a very important part of any Rails application.  It's what stands between HTTP URLs and controllers with actions.  It's one last piece of abstraction that takes your ... Read More

Load Vs. Require

Friday July 13, 2012
How many times have you used the 'require' method?  (And yes, it really is a method, not a keyword.)  Probably too many times to count.  Any non-trivial Ruby program is ... Read More
Top Related Searches hashes subclasses array map

©2013 About.com. All rights reserved.