ruby-changes:9034
From: akr <ko1@a...>
Date: Sun, 7 Dec 2008 19:34:36 +0900 (JST)
Subject: [ruby-changes:9034] Ruby:r20570 (trunk): rdoc update.
akr 2008-12-07 19:34:25 +0900 (Sun, 07 Dec 2008) New Revision: 20570 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20570 Log: rdoc update. Modified files: trunk/lib/open3.rb Index: lib/open3.rb =================================================================== --- lib/open3.rb (revision 20569) +++ lib/open3.rb (revision 20570) @@ -163,6 +163,17 @@ # stdin.close # stdin and stdout_and_stderr should be closed explicitly in this form. # stdout_and_stderr.close # + # Example: + # # check gcc warnings + # source = "foo.c" + # Open3.popen2e("gcc", "-Wall", source) {|i,oe,t| + # oe.each {|line| + # if /warning/ =~ line + # ... + # end + # } + # } + # def popen2e(*cmd, &block) if Hash === cmd.last opts = cmd.pop.dup -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/