class SyntaxTree::Reflection::Node

This class represents one of our nodes in the tree. We’re going to use it as a placeholder for collecting all of the various places that nodes are used.

Attributes

attributes[R]
comment[R]
name[R]
visitor_method[R]

Public Class Methods

new(name, comment, attributes, visitor_method) click to toggle source
# File lib/syntax_tree/reflection.rb, line 143
def initialize(name, comment, attributes, visitor_method)
  @name = name
  @comment = comment
  @attributes = attributes
  @visitor_method = visitor_method
end