Class: Zaid::Nodes::TrueNode

Inherits:
LiteralNode show all
Defined in:
lib/zaid/nodes/true_node.rb

Instance Attribute Summary

Attributes inherited from LiteralNode

#value

Instance Method Summary collapse

Constructor Details

#initializeTrueNode

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