Sha256: 8179ea912cdf9a9424a12283e4c83c3cfa695ae38e5f32c425a54a084ddbf73a
Contents?: true
Size: 536 Bytes
Versions: 13
Compression:
Stored size: 536 Bytes
Contents
# -*- coding: utf-8 -*- module TreeRb # # Visitor for DirTreeWalker # Prints the node at enter # TODO: join this con PrintTreeNodeVisitor class PrintDirTreeVisitor # < BasicTreeNodeVisitor def enter_node( pathname ) puts pathname end def exit_node( pathname ) end # # called when the tree node is not accessible or an exception is raise when the node is accessed # def cannot_enter_node( tree_node, error) end def visit_leaf( pathname ) puts pathname end end end
Version data entries
13 entries across 13 versions & 1 rubygems