ruby-changes:10985
From: matz <ko1@a...>
Date: Tue, 24 Feb 2009 00:21:03 +0900 (JST)
Subject: [ruby-changes:10985] Ruby:r22572 (trunk): * lib/pathname.rb (Pathname#foreachline): removed wrongly
matz 2009-02-24 00:20:35 +0900 (Tue, 24 Feb 2009) New Revision: 22572 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22572 Log: * lib/pathname.rb (Pathname#foreachline): removed wrongly resurrected method. [ruby-dev:38065] Modified files: trunk/ChangeLog trunk/lib/pathname.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 22571) +++ ChangeLog (revision 22572) @@ -1,3 +1,8 @@ +Tue Feb 24 00:19:33 2009 Yukihiro Matsumoto <matz@r...> + + * lib/pathname.rb (Pathname#foreachline): removed wrongly + resurrected method. [ruby-dev:38065] + Mon Feb 23 20:39:21 2009 Tanaka Akira <akr@f...> * ext/socket/ancdata.c (inspect_timespec_as_abstime): new function to Index: lib/pathname.rb =================================================================== --- lib/pathname.rb (revision 22571) +++ lib/pathname.rb (revision 22572) @@ -804,12 +804,6 @@ IO.foreach(@path, *args, &block) end - # Pathname#foreachline is *obsoleted* at 1.8.1. Use #each_line. - def foreachline(*args, &block) - warn "Pathname#foreachline is obsoleted. Use Pathname#each_line." - each_line(*args, &block) - end - # See <tt>IO.read</tt>. Returns all data from the file, or the first +N+ bytes # if specified. def read(*args) IO.read(@path, *args) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/