From: Aldric Giacomoni Date: 2009-09-16T04:27:01+09:00 Subject: Re: Making an array wrap, where last index + 1 = first index def class Array2D < Array def []( index ) super [] index % self.length end end How about that? -- Posted via http://www.ruby-forum.com/.