Ruby 2.6.0 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Integerクラス > integer?
integer? -> true
常に真を返します。
1.integer? # => true 1.0.integer? # => false