From: Farrel Lifson Date: 2006-07-26T00:33:50+09:00 Subject: Re: there has got to be a better way... On 25/07/06, Michael Barinek wrote: > i'm looking to simplify the below... > > @tournament.rounds = Array.new(4) { Round.new } @tournament.rounds.each_with_index do |round,roundNumber| round.matches = Array.new(2**(@tournamet.rounds.length - 1 - roundNumber)) {Match.new} end