Class: TrueNode

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

#initializeTrueNode

Returns a new instance of TrueNode.



15
16
17
# File 'lib/turmali/nodes.rb', line 15

def initialize
  super(true)
end

Instance Method Details

#eval(context) ⇒ Object



41
42
43
# File 'lib/turmali/interpreter.rb', line 41

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