Method: Transpec::AST::Node#initialize
- Defined in:
- lib/transpec/ast/node.rb
#initialize(type, children = [], properties = {}) ⇒ Node
Returns a new instance of Node.
8 9 10 11 12 13 14 15 16 |
# File 'lib/transpec/ast/node.rb', line 8 def initialize(type, children = [], properties = {}) @properties = {} super each_child_node do |child_node| child_node.parent_node = self end end |