Class: Melbourne::AST::OpAssign1

Inherits:
Node
  • Object
show all
Defined in:
lib/melbourne/ast/operators.rb

Overview

TODO: document!

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, receiver, index, op, value) ⇒ OpAssign1

Returns a new instance of OpAssign1.



63
64
65
66
67
68
69
# File 'lib/melbourne/ast/operators.rb', line 63

def initialize(line, receiver, index, op, value)
  @line = line
  @receiver = receiver
  @op = op
  @index = index.body
  @value = value
end

Instance Attribute Details

#indexObject

Returns the value of attribute index.



59
60
61
# File 'lib/melbourne/ast/operators.rb', line 59

def index
  @index
end

#opObject

Returns the value of attribute op.



57
58
59
# File 'lib/melbourne/ast/operators.rb', line 57

def op
  @op
end

#receiverObject

Returns the value of attribute receiver.



55
56
57
# File 'lib/melbourne/ast/operators.rb', line 55

def receiver
  @receiver
end

#valueObject

Returns the value of attribute value.



61
62
63
# File 'lib/melbourne/ast/operators.rb', line 61

def value
  @value
end