Class: Zaid::Nodes::TrueNode
- Inherits:
-
LiteralNode
- Object
- Struct
- LiteralNode
- Zaid::Nodes::TrueNode
- Defined in:
- lib/zaid/nodes/true_node.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.
8 9 10 |
# File 'lib/zaid/nodes/true_node.rb', line 8 def initialize super(true) end |
Instance Method Details
#eval(_context) ⇒ Object
12 13 14 |
# File 'lib/zaid/nodes/true_node.rb', line 12 def eval(_context) Constants['صحيح'] end |