Class: Potter::AST::Value
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #eval ⇒ Object
-
#initialize(value) ⇒ Value
constructor
A new instance of Value.
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
#value ⇒ Object (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
#eval ⇒ Object
10 |
# File 'lib/potter/ast/value.rb', line 10 def eval = @value |