Class: Melbourne::AST::ToString

Inherits:
Node
  • Object
show all
Defined in:
lib/melbourne/ast/values.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, value) ⇒ ToString



65
66
67
68
# File 'lib/melbourne/ast/values.rb', line 65

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

Instance Attribute Details

#valueObject

Returns the value of attribute value.



63
64
65
# File 'lib/melbourne/ast/values.rb', line 63

def value
  @value
end