Class: Rubasteme::AST::OrNode
- Inherits:
-
ListNode
- Object
- Node
- BranchNode
- ListNode
- Rubasteme::AST::OrNode
- Defined in:
- lib/rubasteme/ast/branch_node.rb
Instance Method Summary collapse
-
#initialize(_ = nil) ⇒ OrNode
constructor
A new instance of OrNode.
Methods inherited from ListNode
#elements, #empty?, #first, #rest
Methods inherited from BranchNode
#<<, #[], #[]=, #each, #size, #to_a
Methods inherited from Node
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 |