Hash#index is deprecated.