From: Christer Nilsson Date: 2006-01-12T03:16:13+09:00 Subject: Re: safe array index ? Ed and Florian, thank you both! fetch() has the requested behaviour, but [] is nicer, syntactically. a.fetch(2).fetch(3) # safe a[2][3] # nice with delegate I can have both! class SafeArray < DelegateClass(Array) def [](index) fetch index end end Christer -- Posted via http://www.ruby-forum.com/.