Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Integerクラス > to_i

instance method Integer#to_i

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

self を返します。


10.to_i   # => 10