Class: TrueNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- TrueNode
- Defined in:
- lib/turmali/nodes.rb,
lib/turmali/interpreter.rb
Instance Attribute Summary
Attributes inherited from LiteralNode
Instance Method Summary collapse
- #eval(context) ⇒ Object
-
#initialize ⇒ TrueNode
constructor
A new instance of TrueNode.
Constructor Details
#initialize ⇒ TrueNode
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 |