instance method
Process::Status#==
(untyped other) -> bool
stat == other → true or false
process.c
View on GitHub ↗
static VALUE
pst_equal(VALUE st1, VALUE st2)
{
if (st1 == st2) return Qtrue;
return rb_equal(pst_to_i(st1), st2);
}
Returns whether the value of to_i == other:
Example
`cat /nop` stat = $? # => #<Process::Status: pid 1170366 exit 1> sprintf('%x', stat.to_i) # => "100" stat == 0x100 # => true