Class: Antlers::RootNode

Inherits:
BranchNode show all
Defined in:
lib/nodes/root_node.rb

Instance Attribute Summary

Attributes inherited from BranchNode

#children

Attributes inherited from AntlerNode

#name

Instance Method Summary collapse

Methods inherited from BranchNode

#render

Methods inherited from AntlerNode

#==, #eql?, #hash, #render

Constructor Details

#initialize(name: :root_node, children: []) ⇒ RootNode

Returns a new instance of RootNode.



7
8
9
# File 'lib/nodes/root_node.rb', line 7

def initialize(name: :root_node, children: [])
  super(name:, children:)
end