Class: Antlers::RootNode
- Inherits:
-
BranchNode
- Object
- AntlerNode
- BranchNode
- Antlers::RootNode
- Defined in:
- lib/nodes/root_node.rb
Instance Attribute Summary
Attributes inherited from BranchNode
Attributes inherited from AntlerNode
Instance Method Summary collapse
-
#initialize(name: :root_node, children: []) ⇒ RootNode
constructor
A new instance of RootNode.
Methods inherited from BranchNode
Methods inherited from AntlerNode
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 |