Class: Cyrel::AST::SetNode

Inherits:
ClauseNode show all
Defined in:
lib/cyrel/ast/set_node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #accept

Constructor Details

#initialize(assignments) ⇒ SetNode

Returns a new instance of SetNode.



8
9
10
11
# File 'lib/cyrel/ast/set_node.rb', line 8

def initialize(assignments)
  # assignments is an array of processed assignment tuples
  @assignments = assignments
end

Instance Attribute Details

#assignmentsObject (readonly)

Returns the value of attribute assignments.



6
7
8
# File 'lib/cyrel/ast/set_node.rb', line 6

def assignments
  @assignments
end