From: Flaab Mrlinux Date: 2006-11-16T07:01:46+09:00 Subject: Re: Multidimensional Arrays U might just use this. class Array2D < Array # Inicializamos def initialize(width, height) @data = Array.new(width) { Array.new(height) } end # Definimos el metodo de indexacion para tratarlo como array en C. def [](x, y) @data[x][y] end # Definimos el metodo de asignacion igual que el de indexacion def []=(x, y, value) @data[x][y] = value end end ChessBoard = Array2D.new(8,8) -- Posted via http://www.ruby-forum.com/.