Class: NilNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- NilNode
- Defined in:
- lib/nodes.rb,
lib/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.
25 26 27 |
# File 'lib/nodes.rb', line 25 def initialize super(nil) end |
Instance Method Details
#eval(context) ⇒ Object
56 57 58 |
# File 'lib/interpreter.rb', line 56 def eval(context) Runtime["nil"] end |