Sha256: 0dc36e94e3ac157e2a30962ec8b65b6243c5667727876cdc322353c3bd9f5de3
Contents?: true
Size: 341 Bytes
Versions: 1
Compression:
Stored size: 341 Bytes
Contents
# -*- coding: utf-8 -*- module TreeVisitor # # Print for every node the name # class FlatPrintTreeNodeVisitor < BasicTreeNodeVisitor def enter_tree_node( tree_node ) puts tree_node.name end def exit_tree_node( tree_node ) end def visit_leaf_node( leaf_node ) puts leaf_node.name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
treevisitor-0.1.6 | lib/treevisitor/visitors/flat_print_tree_node_visitors.rb |