Enumerator#peek (Ruby 3.3 リファレンスマニュアル)

[[m:Enumerator#next]] のように 現在までの列挙状態に応じて「次」のオブジェクトを返しますが、 next と異なり列挙状態を変更しません。