Method: FakeFS::Pathname#entries
- Defined in:
- lib/fakefs/pathname.rb
#entries ⇒ Object
Return the entries (files and subdirectories) in the directory, each as a Pathname object.
930 931 932 |
# File 'lib/fakefs/pathname.rb', line 930 def entries Dir.entries(@path).map { |f| self.class.new(f) } end |