Поток управления / Циклы

nums = [12345]
nums.each_with_index{|i, v| 
    puts "nums[#{i}] = #{v}"
}