# File lib/fakefs/dir.rb, line 47 def read fail IOError, 'closed directory' unless @pointer entry = @contents[@pointer] @pointer += 1 entry_to_relative_path(entry) if entry end