From: Christer Nilsson Date: 2006-01-12T08:11:49+09:00 Subject: Re: safe array index ? Christian Neukirchen wrote: > Why do you use a delegator and don't just directly inherit from Array? I tried your suggestion, and it seems to work perfect as well. Can't get simpler than this, I guess: class SafeArray < Array alias_method :[], :fetch end My original inheritance used @arr=Array.new and that was a dead end. -- Posted via http://www.ruby-forum.com/.