Class: Rubasteme::AST::BindingsNode

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

Returns a new instance of BindingsNode.



543
544
545
546
# File 'lib/rubasteme/ast/branch_node.rb', line 543

def initialize(_ = nil)
  # @nodes = [<bind spec 1>, <bind spec 2> , ...]
  super(0, _)
end

Instance Method Details

#add_bind_spec(node) ⇒ Object



548
549
550
# File 'lib/rubasteme/ast/branch_node.rb', line 548

def add_bind_spec(node)
  @nodes << node
end