def class Array2D < Array
  def []( index )
    super [] index % self.length
  end
end

How about that?
-- 
Posted via http://www.ruby-forum.com/.