ruby-changes:14907
From: akr <ko1@a...>
Date: Sun, 28 Feb 2010 10:51:02 +0900 (JST)
Subject: [ruby-changes:14907] Ruby:r26777 (trunk): update rdoc.
akr 2010-02-28 10:50:49 +0900 (Sun, 28 Feb 2010) New Revision: 26777 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26777 Log: update rdoc. Modified files: trunk/lib/open3.rb Index: lib/open3.rb =================================================================== --- lib/open3.rb (revision 26776) +++ lib/open3.rb (revision 26777) @@ -459,14 +459,14 @@ # # Open3.pipeline_r("zcat /var/log/apache2/access.log.*.gz", # [{"LANG"=>"C"}, "grep", "GET /favicon.ico"], - # "logresolve") {|r, ts| - # r.each_line {|line| + # "logresolve") {|o, ts| + # o.each_line {|line| # ... # } # } # - # Open3.pipeline_r("yes", "head -10") {|r, ts| - # p r.read #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n" + # Open3.pipeline_r("yes", "head -10") {|o, ts| + # p o.read #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n" # p ts[0].value #=> #<Process::Status: pid 24910 SIGPIPE (signal 13)> # p ts[1].value #=> #<Process::Status: pid 24913 exit 0> # } @@ -509,8 +509,8 @@ # # Example: # - # Open3.pipeline_w("bzip2 -c", :out=>"/tmp/hello.bz2") {|w, ts| - # w.puts "hello" + # Open3.pipeline_w("bzip2 -c", :out=>"/tmp/hello.bz2") {|i, ts| + # i.puts "hello" # } # def pipeline_w(*cmds, &block) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/