Ruby 2.1.0 リファレンスマニュアル > 関数一覧 > rb_Integer

function rb_Integer

VALUE rb_Integer(VALUE obj)

obj が Ruby の整数でない場合は to_i を使って Integer に変換します。