Class: Rubasteme::AST::OrNode

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) ⇒ OrNode

Returns a new instance of OrNode.



440
441
442
443
# File 'lib/rubasteme/ast/branch_node.rb', line 440

def initialize(_ = nil)
  # @nodes = [<test>, ...]
  super(0, _)
end