Class: Sol::NumberNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- Sol::NumberNode
- Defined in:
- lib/sol/nodes.rb,
lib/sol/interpreter.rb
Instance Attribute Summary
Attributes inherited from LiteralNode
Instance Method Summary collapse
Instance Method Details
#eval(context) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/sol/interpreter.rb', line 46 def eval(context) # Here we access the Runtime, which we'll see in the next section, to create a new instance of the Number class RuntimeModel::Runtime["Number"].new_with_value(value) end |