From: jandot Date: 2008-01-22T22:39:59+09:00 Subject: Re: Hash two dimensions I had this problem a lot when I started to use ruby, especially coming from perl with its hashes of arrays of arrays of hashes. After a while I realized that these nested structures basically pointed out that I should create a class to contain this type of data. And just put those objects in an array. So for your example: class Setting def initialize(platform, setting, value) @platform, @setting, @value = platform, setting, value end attr_accessor :platform, :setting, :value end configuration = Array.new configuration.push(Setting.new("UNO", "urlX", "beep/UNO/playdoit.do")) configuration.push(Setting.new("UNO", "urlY", "beep/UNO/ dontplayPP.do")) ...