to_i

stat.to_i â fixnum
stat.to_int â fixnum
Instance Public methods

Returns the bits in stat as a Fixnum. Poking around in these bits is platform dependent.

1
2
3
fork { exit 0xab }         #=> 26566
Process.wait               #=> 26566
sprintf('%04x', $?.to_i)   #=> "ab00"
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.