Class: EleetScript::TrueNode

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

Instance Method Summary collapse

Methods inherited from LiteralNode

#to_s

Instance Method Details

#eval(context) ⇒ Object



228
229
230
# File 'lib/lang/interpreter.rb', line 228

def eval(context)
  context.root_ns["true"]
end

#valueObject



53
54
55
# File 'lib/lang/nodes.rb', line 53

def value
  true
end