Class: Antlers::RootNode
- Inherits:
-
BranchNode
- Object
- AntlerNode
- BranchNode
- Antlers::RootNode
- Defined in:
- lib/nodes/root_node.rb
Constant Summary
Constants inherited from AntlerNode
AntlerNode::DEF_KEY, AntlerNode::END_KEY
Instance Attribute Summary
Attributes inherited from BranchNode
Attributes inherited from AntlerNode
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: :root_node, children: []) ⇒ RootNode
constructor
A new instance of RootNode.
Methods inherited from BranchNode
Methods inherited from AntlerNode
#==, #end_name, #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 |
Class Method Details
.build ⇒ Object
16 17 18 |
# File 'lib/nodes/root_node.rb', line 16 def build(**) new() end |
.match? ⇒ Boolean
12 13 14 |
# File 'lib/nodes/root_node.rb', line 12 def match?(**) false end |