Class: FalseNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- FalseNode
- 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 ⇒ FalseNode
constructor
A new instance of FalseNode.
Constructor Details
#initialize ⇒ FalseNode
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 |