[前][次][番号順一覧][スレッド一覧]

ruby-changes:17231

From: akr <ko1@a...>
Date: Sun, 12 Sep 2010 09:18:01 +0900 (JST)
Subject: [ruby-changes:17231] Ruby:r29231 (trunk): update document.

akr	2010-09-12 09:15:27 +0900 (Sun, 12 Sep 2010)

  New Revision: 29231

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29231

  Log:
    update document.

  Modified files:
    trunk/process.c

Index: process.c
===================================================================
--- process.c	(revision 29230)
+++ process.c	(revision 29231)
@@ -313,6 +313,10 @@
  *     stat.to_s   -> string
  *
  *  Show pid and exit status as a string.
+ *
+ *    system("false")
+ *    p $?.to_s         #=> "pid 12766 exit 1"
+ *
  */
 
 static VALUE
@@ -336,6 +340,10 @@
  *     stat.inspect   -> string
  *
  *  Override the inspection method.
+ *
+ *    system("false")
+ *    p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"
+ *
  */
 
 static VALUE

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]