Class: PrimitiveNode
- Inherits:
-
Object
- Object
- PrimitiveNode
- Defined in:
- lib/nodes.rb
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.
280 281 282 |
# File 'lib/nodes.rb', line 280 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
279 280 281 |
# File 'lib/nodes.rb', line 279 def value @value end |
Instance Method Details
#evaluate(scope) ⇒ Object
284 285 286 |
# File 'lib/nodes.rb', line 284 def evaluate(scope) return @value end |