Method: FakeFS::Dir#each

Defined in:
lib/fakefs/dir.rb

#eachObject



27
28
29
30
31
32
33
34
35
# File 'lib/fakefs/dir.rb', line 27

def each
  if block_given?
    while (f = read)
      yield f
    end
  else
    @contents.map { |entry| entry_to_relative_path(entry) }.each
  end
end