Sha256: c30aca9bdaad64f5d20ad46cd9f1934de649bf1ba08a5d11d7adf428830e722c
Contents?: true
Size: 258 Bytes
Versions: 1
Compression:
Stored size: 258 Bytes
Contents
# # Print for every node the name # class FlatPrintTreeNodeVisitor < TreeNodeVisitor def enter_tree_node( treeNode ) puts treeNode.name end def exit_tree_node( treeNode ) end def visit_leaf_node( leafNode ) puts leafNode.name end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gf-treevisitor-0.0.10 | lib/treevisitor/visitors/flat_print_tree_node_visitors.rb |