Class: PrimitiveNode
- Inherits:
-
Object
- Object
- PrimitiveNode
- Defined in:
- lib/nodes.rb
Overview
Superclass for primitive data-types.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #evaluate(scope) ⇒ Object
-
#initialize(value) ⇒ PrimitiveNode
constructor
A new instance of PrimitiveNode.
Constructor Details
#initialize(value) ⇒ PrimitiveNode
Returns a new instance of PrimitiveNode.
352 353 354 |
# File 'lib/nodes.rb', line 352 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
351 352 353 |
# File 'lib/nodes.rb', line 351 def value @value end |
Instance Method Details
#evaluate(scope) ⇒ Object
356 357 358 |
# File 'lib/nodes.rb', line 356 def evaluate(scope) return @value end |