Class: NilNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- NilNode
- Defined in:
- lib/turmali/nodes.rb,
lib/turmali/interpreter.rb
Instance Attribute Summary
Attributes inherited from LiteralNode
Instance Method Summary collapse
- #eval(context) ⇒ Object
-
#initialize ⇒ NilNode
constructor
A new instance of NilNode.
Constructor Details
#initialize ⇒ NilNode
Returns a new instance of NilNode.
27 28 29 |
# File 'lib/turmali/nodes.rb', line 27 def initialize super(nil) end |
Instance Method Details
#eval(context) ⇒ Object
53 54 55 |
# File 'lib/turmali/interpreter.rb', line 53 def eval(context) Constants["nil"] end |