Class: Rubasteme::AST::BindSpecNode
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
Returns a new instance of BindSpecNode.
554
555
556
|
# File 'lib/rubasteme/ast/branch_node.rb', line 554
def initialize(_ = nil)
super(2, _)
end
|
Instance Method Details
#expression ⇒ Object
566
567
568
|
# File 'lib/rubasteme/ast/branch_node.rb', line 566
def expression
@nodes[1]
end
|
#expression=(node) ⇒ Object
570
571
572
|
# File 'lib/rubasteme/ast/branch_node.rb', line 570
def expression=(node)
@nodes[1] = node
end
|
#identifier ⇒ Object
558
559
560
|
# File 'lib/rubasteme/ast/branch_node.rb', line 558
def identifier
@nodes[0]
end
|
#identifier=(node) ⇒ Object
562
563
564
|
# File 'lib/rubasteme/ast/branch_node.rb', line 562
def identifier=(node)
@nodes[0] = node
end
|