Class: FalseNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- FalseNode
- Defined in:
- lib/toylang/ast/nodes.rb,
lib/toylang/interpreter/evaluation.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.
22 23 24 |
# File 'lib/toylang/ast/nodes.rb', line 22 def initialize super(false) end |
Instance Method Details
#eval(_context) ⇒ Object
39 40 41 |
# File 'lib/toylang/interpreter/evaluation.rb', line 39 def eval(_context) Runtime['false'] end |