Class: Melbourne::AST::VariableAssignment

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

Instance Attribute Summary collapse

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, name, value) ⇒ VariableAssignment



58
59
60
61
62
# File 'lib/melbourne/ast/variables.rb', line 58

def initialize(line, name, value)
  @line = line
  @name = name
  @value = value
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



56
57
58
# File 'lib/melbourne/ast/variables.rb', line 56

def name
  @name
end

#valueObject

Returns the value of attribute value.



56
57
58
# File 'lib/melbourne/ast/variables.rb', line 56

def value
  @value
end