D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Process
/
Filename :
exit-c.ri
back
Copy
U:RDoc::AnyMethod[iI" exit:ETI"Process::exit;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"EInitiates termination of the Ruby script by raising SystemExit; ;TI""the exception may be caught. ;TI"EReturns exit status +status+ to the underlying operating system.;To:RDoc::Markup::BlankLine o; ; [I"5Values +true+ and +false+ for argument +status+ ;TI"2indicate, respectively, success and failure; ;TI"9The meanings of integer values are system-dependent.;T@o; ; [I" Example:;T@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"Output:;T@o;; [I"%Rescued a SystemExit exception. ;TI"After begin block. ;T; 0o; ; [I"&Just prior to final termination, ;TI"@Ruby executes any at-exit procedures (see Kernel::at_exit) ;TI"Cand any object finalizers (see ObjectSpace::define_finalizer).;T@o; ; [I" Example:;T@o;; [I"-at_exit { puts 'In at_exit function.' } ;TI"KObjectSpace.define_finalizer('string', proc { puts 'In finalizer.' }) ;TI" exit ;T; 0o; ; [I"Output:;T@o;; [I"In at_exit function. ;TI"In finalizer.;T; 0: @fileI"process.c;T:0@omit_headings_from_table_of_contents_below0I"5exit(status = true) Process.exit(status = true) ;T0[ I"(*args);T@=FI"Process;TcRDoc::NormalModule00