Christer Nilsson wrote:
> class SafeArray < DelegateClass(Array)
>   def [](index)
>     fetch index
>   end
> end

Or, even easier:

class SafeArray < DelegateClass(Array)
  alias_method :[], :fetch
end