prev Ruby has no internal pointer in array objects like PHP. Because of this, there is no direct equivalent to PHP's prev function. {{related: array/current array/end array/next array/reset array/each }}