Sha256: 19b2c4c73186c9b22ac5f04c22d98dcb7d42bee727fff9ef19ccd5a8193e5bfd

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

# -*- coding: utf-8 -*-
module TreeVisitor
  #
  # Callback methods used to visit a tree
  # Are empty so it is possible to define only a subset when deriving subclass
  #
  class BasicTreeNodeVisitor

    #
    # called on tree node at start of the visit i.e. we start to visit the subtree
    #
    def enter_tree_node( tree_node )
    end

    #
    # called on tree node at end of the visit i.e. oll subtree are visited
    #
    def exit_tree_node( tree_node )
    end

    #
    # called when visit leaf node
    #
    def visit_leaf_node( leaf_node )
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
treevisitor-0.1.6 lib/treevisitor/basic_tree_node_visitor.rb