module SyntaxTree::Reflection

This module is used to provide some reflection on the various types of nodes and their attributes. As soon as it is required it collects all of its information.

Attributes

nodes[R]

This is going to hold a hash of all of the nodes in the tree. The keys are the names of the nodes as symbols.

Public Class Methods

node(name) click to toggle source

This expects a node name as a symbol and returns the node object for that node.

# File lib/syntax_tree/reflection.rb, line 158
def node(name)
  nodes.fetch(name)
end