Class: Potter::AST::Value

Inherits:
Node
  • Object
show all
Defined in:
lib/potter/ast/value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#eql?, #hash, #name, #symbol, #visit

Constructor Details

#initialize(value) ⇒ Value

Returns a new instance of Value.



6
7
8
# File 'lib/potter/ast/value.rb', line 6

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/potter/ast/value.rb', line 4

def value
  @value
end

Instance Method Details

#evalObject



10
# File 'lib/potter/ast/value.rb', line 10

def eval = @value