* lib/pathname.rb (Pathname#foreachline): removed wrongly
resurrected method. [ruby-dev:38065] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
605cd65904
commit
b47b9fbb87
@ -1,3 +1,8 @@
|
|||||||
|
Tue Feb 24 00:19:33 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/pathname.rb (Pathname#foreachline): removed wrongly
|
||||||
|
resurrected method. [ruby-dev:38065]
|
||||||
|
|
||||||
Mon Feb 23 20:39:21 2009 Tanaka Akira <akr@fsij.org>
|
Mon Feb 23 20:39:21 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/socket/ancdata.c (inspect_timespec_as_abstime): new function to
|
* ext/socket/ancdata.c (inspect_timespec_as_abstime): new function to
|
||||||
|
@ -804,12 +804,6 @@ class Pathname # * IO *
|
|||||||
IO.foreach(@path, *args, &block)
|
IO.foreach(@path, *args, &block)
|
||||||
end
|
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
|
# See <tt>IO.read</tt>. Returns all data from the file, or the first +N+ bytes
|
||||||
# if specified.
|
# if specified.
|
||||||
def read(*args) IO.read(@path, *args) end
|
def read(*args) IO.read(@path, *args) end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user