Class: NilNode

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

Instance Attribute Summary

Attributes inherited from LiteralNode

#value

Instance Method Summary collapse

Constructor Details

#initializeNilNode

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