From: Todd Benson Date: 2007-10-29T08:10:32+09:00 Subject: Re: How do I define a dynamic Matrix or .... On 10/28/07, Todd Benson wrote: > irb> odd_matrix_number = 7 > irb> my_matrix - Array.new(odd_matrix_number) { > Array.new(odd_matrix_number) {0} } > > I'm not sure exactly what is your assignment, but it might be good to > create a MagicSquare object. > > My half a cent. > > Todd That is supposed to be... irb> my_matrix = Array.new(odd_matrix_number) { Array.new(odd_matrix_number) {0} } ("=" in place of the original "-") Somebody get me away from this particular keyboard :-) Todd