Class: FalseNode

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

#initializeFalseNode

Returns a new instance of FalseNode.



21
22
23
# File 'lib/turmali/nodes.rb', line 21

def initialize
  super(false)
end

Instance Method Details

#eval(context) ⇒ Object



47
48
49
# File 'lib/turmali/interpreter.rb', line 47

def eval(context)
  Constants["false"]
end