From: Fabian Streitel Date: 2009-09-16T03:10:36+09:00 Subject: Re: Making an array wrap, where last index + 1 = first index --000e0ce0450ac03e7b0473a1b2d3 Content-Type: text/plain; charset=ISO-8859-1 Hi there! > What would be the easiest solution. Perhaps modification or additions to > the Array class in my program? Perhaps some addtions to my Array2D > class? > You could overload the [] method, if you're only interested in array access: class Array2D < Array def []( index ) if index >= self.length #wrap around else super end end something like that... ;-) Same goes for []= Greetz! --000e0ce0450ac03e7b0473a1b2d3--