Method: OOFile::DirEntry#traverse

Defined in:
lib/oofile/filesystem.rb

#traverse(traverser) ⇒ Object

I am visitable with a Traverser. I perform inorder traversal of FsEntries.



94
95
96
97
98
99
# File 'lib/oofile/filesystem.rb', line 94

def traverse(traverser)
  traverser.traverse_dir(self)
  Dir.new(@path).each do |stringpath|
    from(stringpath).traverse(traverser) unless stringpath=='.' || stringpath=='..' 
  end
end