Class: Rubasteme::AST::LetBaseNode
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) ⇒ LetBaseNode
511
512
513
514
|
# File 'lib/rubasteme/ast/branch_node.rb', line 511
def initialize(_ = nil)
super(2, _)
end
|
Instance Method Details
#bindings ⇒ Object
516
517
518
|
# File 'lib/rubasteme/ast/branch_node.rb', line 516
def bindings
@nodes[0]
end
|
#bindings=(node) ⇒ Object
520
521
522
|
# File 'lib/rubasteme/ast/branch_node.rb', line 520
def bindings=(node)
@nodes[0] = node
end
|
#body ⇒ Object
524
525
526
|
# File 'lib/rubasteme/ast/branch_node.rb', line 524
def body
@nodes[1]
end
|
#body=(node) ⇒ Object
528
529
530
|
# File 'lib/rubasteme/ast/branch_node.rb', line 528
def body=(node)
@nodes[1] = node
end
|