Sha256: 463190db7a28cd44a41eb5ca9e5af22ccf4e677aa10769e26525e38ec8a1a463
Contents?: true
Size: 387 Bytes
Versions: 1
Compression:
Stored size: 387 Bytes
Contents
# -*- coding: utf-8 -*- module TreeVisitor # # Visitor for DirTreeWalker # Prints the node at enter # TODO: join this con PrintTreeNodeVisitor class PrintDirTreeVisitor < BasicTreeNodeVisitor def enter_tree_node( pathname ) puts pathname end def exit_tree_node( pathname ) end def visit_leaf_node( pathname ) puts pathname end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treevisitor-0.1.6 | lib/treevisitor/visitors/print_dir_tree_visitor.rb |