Class: Rubasteme::AST::IterationBindingsNode

Inherits:
ListNode show all
Defined in:
lib/rubasteme/ast/branch_node.rb

Instance Method Summary collapse

Methods inherited from ListNode

#elements, #empty?, #first, #rest

Methods inherited from BranchNode

#<<, #[], #[]=, #each, #size, #to_a

Methods inherited from Node

#to_a, #to_s, #type

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