Class: Melbourne::AST::SValue

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

Returns a new instance of SValue.



41
42
43
44
# File 'lib/melbourne/ast/values.rb', line 41

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

Instance Attribute Details

#valueObject

Returns the value of attribute value.



39
40
41
# File 'lib/melbourne/ast/values.rb', line 39

def value
  @value
end