Class: Melbourne::AST::OpAssignAnd

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

Overview

TODO: document!

Direct Known Subclasses

OpAssignOr

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, left, right) ⇒ OpAssignAnd

Returns a new instance of OpAssignAnd.



102
103
104
105
106
# File 'lib/melbourne/ast/operators.rb', line 102

def initialize(line, left, right)
  @line = line
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject

Returns the value of attribute left.



100
101
102
# File 'lib/melbourne/ast/operators.rb', line 100

def left
  @left
end

#rightObject

Returns the value of attribute right.



100
101
102
# File 'lib/melbourne/ast/operators.rb', line 100

def right
  @right
end