U:RDoc::AnyMethod[iI" exit:ETI"Kernel#exit;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"AInitiates the termination of the Ruby script by raising the ;TI"JSystemExit
exception. This exception may be caught. The ;TI"Hoptional parameter is used to return a status code to the invoking ;TI"environment. ;TI">+true+ and +FALSE+ of _status_ means success and failure ;TI"Crespectively. The interpretation of other integer values are ;TI"system dependent.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"begin
;TI" exit
;TI" puts "never get here"
;TI"rescue SystemExit
;TI"- puts "rescued a SystemExit exception"
;TI" end
;TI"puts "after begin block"
;T:@format0o;
; [I"produces:;T@o;; [I"$rescued a SystemExit exception
;TI"after begin block
;T;
0o;
; [I"QJust prior to termination, Ruby executes any at_exit
functions ;TI"?(see Kernel::at_exit) and runs any object finalizers (see ;TI"$ObjectSpace::define_finalizer).;T@o;; [I")at_exit { puts "at_exit function" }
;TI"KObjectSpace.define_finalizer("string", proc { puts "in finalizer" })
;TI"
exit
;T;
0o;
; [I"produces:;T@o;; [I"at_exit function
;TI"in finalizer;T;
0:
@fileI"process.c;T:0@omit_headings_from_table_of_contents_below0I"Lexit(status=true)
Kernel::exit(status=true)
Process::exit(status=true)
;T0[ I"(*args);T@6FI"Kernel;TcRDoc::NormalModule00