Class: NumberNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- NumberNode
- Defined in:
- lib/turmali/nodes.rb,
lib/turmali/interpreter.rb
Instance Attribute Summary
Attributes inherited from LiteralNode
Instance Method Summary collapse
Instance Method Details
#eval(context) ⇒ Object
29 30 31 |
# File 'lib/turmali/interpreter.rb', line 29 def eval(context) Constants["Number"].new_with_value(value) end |