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

ruby-changes:8982

From: akr <ko1@a...>
Date: Thu, 4 Dec 2008 23:35:25 +0900 (JST)
Subject: [ruby-changes:8982] Ruby:r20518 (trunk): rdoc update.

akr	2008-12-04 23:35:19 +0900 (Thu, 04 Dec 2008)

  New Revision: 20518

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

  Log:
    rdoc update.

  Modified files:
    trunk/lib/open3.rb

Index: lib/open3.rb
===================================================================
--- lib/open3.rb	(revision 20517)
+++ lib/open3.rb	(revision 20518)
@@ -195,6 +195,13 @@
   #
   # If opts[:stdin_data] is specified, it is sent to the command's standard input.
   #
+  # Example:
+  #
+  #   o, e, s = Open3.poutput3("echo a; sort >&2", :stdin_data=>"foo\nbar\nbaz\n")
+  #   p o #=> "a\n"
+  #   p e #=> "bar\nbaz\nfoo\n"
+  #   p s #=> #<Process::Status: pid 32682 exit 0>
+  #
   def poutput3(*cmd, &block)
     if Hash === cmd.last
       opts = cmd.pop.dup

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

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