class SyntaxTree::Visitor
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.
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.