summaryrefslogtreecommitdiff
path: root/ext/pathname/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-23 14:16:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-23 14:16:06 +0000
commit526d246f715a1a0046942f942173c2d9447e78a5 (patch)
tree26a3ea7aed8c729dbf0d6425cc0d64683a5222ca /ext/pathname/lib
parent645114b25c067f88c5d7e15e850f671272487b7d (diff)
* ext/pathname/pathname.c (path_each_line): Pathname#each_line
translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname/lib')
-rw-r--r--ext/pathname/lib/pathname.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 4d19aa7..3099b2b 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -484,16 +484,6 @@ class Pathname
end
class Pathname # * IO *
- #
- # #each_line iterates over the line in the file. It yields a String object
- # for each line.
- #
- # This method has existed since 1.8.1.
- #
- def each_line(*args, &block) # :yield: line
- IO.foreach(@path, *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