Class: Zaid::Nodes::FloatNode

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

Instance Attribute Summary

Attributes inherited from LiteralNode

#value

Instance Method Summary collapse

Instance Method Details

#eval(_context) ⇒ Object


8
9
10
# File 'lib/zaid/nodes/float_node.rb', line 8

def eval(_context)
  Constants['عدد_عشري'].new_with_value(value)
end