Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > 組み込みライブラリ > Process::Statusクラス > to_int

instance method Process::Status#to_int

to_int -> Integer[permalink][rdoc]

to_i と同じです。

このメソッドにより $? が Fixnum として扱われるようになります(暗黙の型変換)。これは後方互換性のため です。