Class: ImgToScript::AbstractToken::AssignValue
- Inherits:
-
ImgToScript::AbstractToken
- Object
- ImgToScript::AbstractToken
- ImgToScript::AbstractToken::AssignValue
- Defined in:
- lib/img_to_script/abstract_token/assign_value.rb
Overview
Assign value to a variable.
Instance Attribute Summary collapse
-
#left ⇒ Object
readonly
Returns the value of attribute left.
-
#right ⇒ Object
readonly
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left:, right:) ⇒ AssignValue
constructor
A new instance of AssignValue.
Constructor Details
#initialize(left:, right:) ⇒ AssignValue
Returns a new instance of AssignValue.
11 12 13 14 15 16 17 |
# File 'lib/img_to_script/abstract_token/assign_value.rb', line 11 def initialize(left:, right:, **) @type = AbsTokenType::ASSIGN_VALUE @left = left @right = right super end |
Instance Attribute Details
#left ⇒ Object (readonly)
Returns the value of attribute left.
9 10 11 |
# File 'lib/img_to_script/abstract_token/assign_value.rb', line 9 def left @left end |
#right ⇒ Object (readonly)
Returns the value of attribute right.
9 10 11 |
# File 'lib/img_to_script/abstract_token/assign_value.rb', line 9 def right @right end |