Class: RLSL::Prism::IR::MultipleAssignment

Inherits:
Node
  • Object
show all
Defined in:
lib/rlsl/prism/ir/definitions.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#type

Instance Method Summary collapse

Methods inherited from Node

#accept, visits

Constructor Details

#initialize(targets, value) ⇒ MultipleAssignment

Returns a new instance of MultipleAssignment.



46
47
48
49
50
51
# File 'lib/rlsl/prism/ir/definitions.rb', line 46

def initialize(targets, value)
  super()
  @targets = targets
  @value = value
  @type = nil
end

Instance Attribute Details

#targetsObject (readonly)

Returns the value of attribute targets.



42
43
44
# File 'lib/rlsl/prism/ir/definitions.rb', line 42

def targets
  @targets
end

#valueObject (readonly)

Returns the value of attribute value.



42
43
44
# File 'lib/rlsl/prism/ir/definitions.rb', line 42

def value
  @value
end