Method: FakeFS::Pathname#each_entry

Defined in:
lib/fakefs/pathname.rb

#each_entryObject

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.



944
945
946
# File 'lib/fakefs/pathname.rb', line 944

def each_entry(*) # :yield: pathname
  Dir.foreach(@path) { |f| yield self.class.new(f) }
end