Class: Melbourne::AST::OpAssign1
- Defined in:
- lib/melbourne/ast/operators.rb
Overview
TODO: document!
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#op ⇒ Object
Returns the value of attribute op.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, receiver, index, op, value) ⇒ OpAssign1
constructor
A new instance of OpAssign1.
Methods inherited from Node
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
#index ⇒ Object
Returns the value of attribute index.
59 60 61 |
# File 'lib/melbourne/ast/operators.rb', line 59 def index @index end |
#op ⇒ Object
Returns the value of attribute op.
57 58 59 |
# File 'lib/melbourne/ast/operators.rb', line 57 def op @op end |
#receiver ⇒ Object
Returns the value of attribute receiver.
55 56 57 |
# File 'lib/melbourne/ast/operators.rb', line 55 def receiver @receiver end |
#value ⇒ Object
Returns the value of attribute value.
61 62 63 |
# File 'lib/melbourne/ast/operators.rb', line 61 def value @value end |