このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ

Ruby 2.6.0 リファレンスマニュアル

instance method Integer#to_i

to_i -> self[permalink][rdoc]
to_int -> self

self を返します。

10.to_i   # => 10