Ruby 1.9.2 Reference Manual > All Libraries > Builtin Library > class Process::Status > >>
self >> num -> Integerself.to_i >> num と同じです。
fork { exit 99 } #=> 26563
Process.wait #=> 26563
$?.to_i #=> 25344
$? >> 8 #=> 99