From: RichardOnRails Date: 2008-05-04T05:05:08+09:00 Subject: Matrix-element extractor -- How to define it Hi, I defined and populated a 9x9 matrix (Array of Arrays) of strings, m I defined an element-extractor: class Array def get(i,j) line =self[i-1] char = line[j-1] end end To get the first element of the second row, I used the following, which worked fine: m.get(2,1) I'd like to write merely m(2,1). How can I do that simply? Thanks in Advance, Richard