Ruby 1.8.7 Reference Manual > All Libraries > Builtin Library > class Process::Status > to_int
to_int -> Integer
to_i と同じです。
このメソッドにより $? が Fixnum として扱われるようになります(暗黙の型変換)。これは後方互換性のため です。