Class: Rubasteme::AST::IterationBindingsNode
- Inherits:
-
ListNode
- Object
- Node
- BranchNode
- ListNode
- Rubasteme::AST::IterationBindingsNode
- Defined in:
- lib/rubasteme/ast/branch_node.rb
Instance Method Summary collapse
- #add_iteration_spec(node) ⇒ Object
-
#initialize(_ = nil) ⇒ IterationBindingsNode
constructor
A new instance of IterationBindingsNode.
Methods inherited from ListNode
#elements, #empty?, #first, #rest
Methods inherited from BranchNode
#<<, #[], #[]=, #each, #size, #to_a
Methods inherited from Node
Constructor Details
#initialize(_ = nil) ⇒ IterationBindingsNode
Returns a new instance of IterationBindingsNode.
614 615 616 |
# File 'lib/rubasteme/ast/branch_node.rb', line 614 def initialize(_ = nil) super(0, _) end |
Instance Method Details
#add_iteration_spec(node) ⇒ Object
618 619 620 |
# File 'lib/rubasteme/ast/branch_node.rb', line 618 def add_iteration_spec(node) @nodes << node end |