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