Class: MilkTea::AST::Assignment
- Inherits:
-
Data
- Object
- Data
- MilkTea::AST::Assignment
- Defined in:
- lib/milk_tea/core/ast.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(target:, operator:, value:, line: nil, column: nil) ⇒ Assignment
constructor
A new instance of Assignment.
Constructor Details
#initialize(target:, operator:, value:, line: nil, column: nil) ⇒ Assignment
Returns a new instance of Assignment.
128 |
# File 'lib/milk_tea/core/ast.rb', line 128 def initialize(target:, operator:, value:, line: nil, column: nil) = super |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
127 128 129 |
# File 'lib/milk_tea/core/ast.rb', line 127 def column @column end |
#line ⇒ Object (readonly)
Returns the value of attribute line
127 128 129 |
# File 'lib/milk_tea/core/ast.rb', line 127 def line @line end |
#operator ⇒ Object (readonly)
Returns the value of attribute operator
127 128 129 |
# File 'lib/milk_tea/core/ast.rb', line 127 def operator @operator end |
#target ⇒ Object (readonly)
Returns the value of attribute target
127 128 129 |
# File 'lib/milk_tea/core/ast.rb', line 127 def target @target end |
#value ⇒ Object (readonly)
Returns the value of attribute value
127 128 129 |
# File 'lib/milk_tea/core/ast.rb', line 127 def value @value end |