Class: SyntaxTree::Visitor

Inherits:
BasicVisitor show all
Defined in:
lib/syntax_tree/visitor.rb

Overview

Visitor is a parent class that provides the ability to walk down the tree and handle a subset of nodes. By defining your own subclass, you can explicitly handle a node type by defining a visit_* method.

Method Summary

Methods inherited from BasicVisitor

valid_visit_methods, #visit, #visit_all, #visit_child_nodes, visit_method, visit_methods