Class: RLSL::Prism::IR::Assignment
- Defined in:
- lib/rlsl/prism/ir/control_flow.rb
Instance Attribute Summary collapse
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(target, value) ⇒ Assignment
constructor
A new instance of Assignment.
Methods inherited from Node
Constructor Details
#initialize(target, value) ⇒ Assignment
Returns a new instance of Assignment.
37 38 39 40 41 42 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 37 def initialize(target, value) super() @target = target @value = value @type = value&.type end |
Instance Attribute Details
#target ⇒ Object (readonly)
Returns the value of attribute target.
33 34 35 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 33 def target @target end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
33 34 35 |
# File 'lib/rlsl/prism/ir/control_flow.rb', line 33 def value @value end |