Adam Shelly wrote:

> 
> It seems sensible to me, although I'd use a hash instead of a
> associative array - it just looks cleaner.  I didn't check the
> performance difference though.
> 
I thought about a hash first, but for some reason shied away from a hash 
where the keys could be any object, including nil.  There's no reason to 
be afraid of that though, is there?  I think a hash would probably be 
faster.
-- 
Posted via http://www.ruby-forum.com/.