each_with_index method is used with array objects. It is used like each method but instead of passing one argument to block, it passes two arguments - first argument is the item itself and second one is index of item in array. In this video we will understand the use of this method and see the example as well.