From: Victor Reyes Date: 2007-10-29T08:16:41+09:00 Subject: Re: How do I define a dynamic Matrix or .... ------=_Part_6076_16996359.1193613404386 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you gents, for your suggestions and help. Victor On 10/28/07, Todd Benson wrote: > > 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 > > ------=_Part_6076_16996359.1193613404386--