Sha256: 3ddea9c523f60cdceeda44f9eccd575cbab3b518e7a131819898bb5b46c039ef
Contents?: true
Size: 490 Bytes
Versions: 13
Compression:
Stored size: 490 Bytes
Contents
# -*- coding: utf-8 -*- module TreeRb # # Print for every node the name # class FlatPrintTreeNodeVisitor # < BasicTreeNodeVisitor def enter_node( tree_node ) puts tree_node.name end def exit_node( tree_node ) 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( leaf_node ) puts leaf_node.name end end end
Version data entries
13 entries across 13 versions & 1 rubygems