Say I have a custom class, what should I override to get array-like behaviour? I think that supplying an each method won't be enough, as that won't give me acces to the [] methods?
Should I inherit the Array class? What should I overwrite in there?