Class: Rux::AST::ListNode
- Inherits:
-
Object
- Object
- Rux::AST::ListNode
- Defined in:
- lib/rux/ast/list_node.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
Instance Method Summary collapse
- #accept(visitor) ⇒ Object
-
#initialize(children) ⇒ ListNode
constructor
A new instance of ListNode.
Constructor Details
#initialize(children) ⇒ ListNode
6 7 8 |
# File 'lib/rux/ast/list_node.rb', line 6 def initialize(children) @children = children end |
Instance Attribute Details
#children ⇒ Object (readonly)
Returns the value of attribute children.
4 5 6 |
# File 'lib/rux/ast/list_node.rb', line 4 def children @children end |
Instance Method Details
#accept(visitor) ⇒ Object
10 11 12 |
# File 'lib/rux/ast/list_node.rb', line 10 def accept(visitor) visitor.visit_list(self) end |