Class: MilkTea::AST::Assignment

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target:, operator:, value:, line: nil, column: nil) ⇒ Assignment

Returns a new instance of Assignment.



142
# File 'lib/milk_tea/core/ast.rb', line 142

def initialize(target:, operator:, value:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



141
142
143
# File 'lib/milk_tea/core/ast.rb', line 141

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



141
142
143
# File 'lib/milk_tea/core/ast.rb', line 141

def line
  @line
end

#operatorObject (readonly)

Returns the value of attribute operator

Returns:

  • (Object)

    the current value of operator



141
142
143
# File 'lib/milk_tea/core/ast.rb', line 141

def operator
  @operator
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



141
142
143
# File 'lib/milk_tea/core/ast.rb', line 141

def target
  @target
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



141
142
143
# File 'lib/milk_tea/core/ast.rb', line 141

def value
  @value
end