Class: Rubasteme::AST::CaseRecipientClauseNode
- Inherits:
-
RecipientClauseBaseNode
- Object
- Node
- BranchNode
- ListNode
- RecipientClauseBaseNode
- Rubasteme::AST::CaseRecipientClauseNode
- Defined in:
- lib/rubasteme/ast/branch_node.rb
Instance Method Summary collapse
- #data ⇒ Object
- #data=(node) ⇒ Object
-
#initialize(_ = nil) ⇒ CaseRecipientClauseNode
constructor
A new instance of CaseRecipientClauseNode.
Methods inherited from RecipientClauseBaseNode
Methods inherited from ListNode
#elements, #empty?, #first, #rest
Methods inherited from BranchNode
#<<, #[], #[]=, #each, #size, #to_a
Methods inherited from Node
Constructor Details
#initialize(_ = nil) ⇒ CaseRecipientClauseNode
Returns a new instance of CaseRecipientClauseNode.
409 410 411 412 413 |
# File 'lib/rubasteme/ast/branch_node.rb', line 409 def initialize(_ = nil) # ( ( <datum>* ) => <recipient> ) # @nodes = [<data>, <recipient>] super(2, 1, _) end |
Instance Method Details
#data ⇒ Object
415 416 417 |
# File 'lib/rubasteme/ast/branch_node.rb', line 415 def data @nodes[0] end |
#data=(node) ⇒ Object
419 420 421 |
# File 'lib/rubasteme/ast/branch_node.rb', line 419 def data=(node) @nodes[0] = node end |