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.



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

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



127
128
129
# File 'lib/milk_tea/core/ast.rb', line 127

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



127
128
129
# File 'lib/milk_tea/core/ast.rb', line 127

def line
  @line
end

#operatorObject (readonly)

Returns the value of attribute operator

Returns:

  • (Object)

    the current value of operator



127
128
129
# File 'lib/milk_tea/core/ast.rb', line 127

def operator
  @operator
end

#targetObject (readonly)

Returns the value of attribute target

Returns:

  • (Object)

    the current value of target



127
128
129
# File 'lib/milk_tea/core/ast.rb', line 127

def target
  @target
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



127
128
129
# File 'lib/milk_tea/core/ast.rb', line 127

def value
  @value
end