Class: NilNode

Inherits:
LiteralNode show all
Defined in:
lib/nodes.rb,
lib/interpreter.rb

Instance Attribute Summary

Attributes inherited from LiteralNode

#value

Instance Method Summary collapse

Constructor Details

#initializeNilNode

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