summaryrefslogtreecommitdiff
path: root/ext/pathname/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-18 11:10:36 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-09-18 11:10:36 +0000
commit9dffbcfc09dc54d77bfb99dc91e0c5ea01182925 (patch)
tree7bbd15030f545b23aa33475c190fbdd9d57d233e /ext/pathname/lib
parentc095a38cad9acc00f6ddbae74df6a1d7596bd8aa (diff)
* ext/pathname/pathname.c (path_each_entry): Pathname#each_entry
translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pathname/lib')
-rw-r--r--ext/pathname/lib/pathname.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
index 1f29f38..0b7458e 100644
--- a/ext/pathname/lib/pathname.rb
+++ b/ext/pathname/lib/pathname.rb
@@ -484,19 +484,6 @@ class Pathname
end
-class Pathname # * Dir *
-
- # Iterates over the entries (files and subdirectories) in the directory. It
- # yields a Pathname object for each entry.
- #
- # This method has existed since 1.8.1.
- def each_entry(&block) # :yield: pathname
- Dir.foreach(@path) {|f| yield self.class.new(f) }
- end
-
-end
-
-
class Pathname # * Find *
#
# Pathname#find is an iterator to traverse a directory tree in a depth first