ruby-changes:15279
From: nobu <ko1@a...>
Date: Fri, 2 Apr 2010 06:59:56 +0900 (JST)
Subject: [ruby-changes:15279] Ruby:r27164 (trunk): * process.c (rb_f_exit_bang, rb_f_exit, rb_f_abort): fix rdoc.
nobu 2010-04-02 06:59:41 +0900 (Fri, 02 Apr 2010) New Revision: 27164 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27164 Log: * process.c (rb_f_exit_bang, rb_f_exit, rb_f_abort): fix rdoc. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 27163) +++ process.c (revision 27164) @@ -2646,13 +2646,13 @@ /* * call-seq: - * Process.exit!(fixnum=-1) + * Process.exit!(status=false) * * Exits the process immediately. No exit handlers are - * run. <em>fixnum</em> is returned to the underlying system as the + * run. <em>status</em> is returned to the underlying system as the * exit status. * - * Process.exit!(0) + * Process.exit!(true) */ static VALUE @@ -2700,14 +2700,17 @@ /* * call-seq: - * exit(integer=0) - * Kernel::exit(integer=0) - * Process::exit(integer=0) + * exit(status=true) + * Kernel::exit(status=true) + * Process::exit(status=true) * * Initiates the termination of the Ruby script by raising the * <code>SystemExit</code> exception. This exception may be caught. The * optional parameter is used to return a status code to the invoking * environment. + * +true+ and +FALSE+ of _status_ means success and failure + * respectively. The interpretation of other integer values are + * system dependent. * * begin * exit @@ -2771,11 +2774,11 @@ /* * call-seq: * abort - * Kernel::abort - * Process::abort + * Kernel::abort([msg]) + * Process::abort([msg]) * * Terminate execution immediately, effectively by calling - * <code>Kernel.exit(1)</code>. If _msg_ is given, it is written + * <code>Kernel.exit(false)</code>. If _msg_ is given, it is written * to STDERR prior to terminating. */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/