From: Adam Akhtar Date: 2008-08-20T20:46:17+09:00 Subject: Re: array of hashes - need to iterate and calulate stats but how hi guys thanks for the advice. id like to stick with processing a hash rather htan a class for the moment. The problme is the output object cant be a hash, it would have to be an array of hashes as in my reply to lex ill want to return more than two values for each item. ill need the model number, the total nubmer of listings for that model, the number of which sold and from those the sell through rate (percentage that sold). With a hash i can only have a key and a value which is a shame as those solutions above looked good. I cant think of a way to rejig them to work with an array of hashes. or is my assumption wrong. -- Posted via http://www.ruby-forum.com/.