Class: Melbourne::AST::VariableAccess

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) ⇒ VariableAccess



47
48
49
50
# File 'lib/melbourne/ast/variables.rb', line 47

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

Instance Attribute Details

#nameObject

Returns the value of attribute name.



45
46
47
# File 'lib/melbourne/ast/variables.rb', line 45

def name
  @name
end