おそらく明らかな何かが欠けていますが、ハッシュごとのループ内の反復のインデックス/カウントにアクセスする方法はありますか?
hash = {'three' => 'one', 'four' => 'two', 'one' => 'three'}
hash.each { |key, value|
# any way to know which iteration this is
# (without having to create a count variable)?
}