ruby-changes:13357
From: akr <ko1@a...>
Date: Sun, 27 Sep 2009 23:44:53 +0900 (JST)
Subject: [ruby-changes:13357] Ruby:r25123 (trunk): rdoc update.
akr 2009-09-27 23:44:43 +0900 (Sun, 27 Sep 2009) New Revision: 25123 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25123 Log: rdoc update. Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 25122) +++ enum.c (revision 25123) @@ -2067,6 +2067,14 @@ * # "\n"] * # ... * + * paragraphs separated by empty lines can be parsed as follows. + * + * File.foreach("README").chunk {|line| + * /\A\s*\z/ !~ line || nil + * }.each {|_, lines| + * pp lines + * } + * * :_alone can be used to pass through bunch of elements. * For example, sort consective lines formed as Foo#bar and * pass other lines, chunk can be used as follows. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/