Class: Ptolemy::TOML::FloatLiteral
- Inherits:
-
Treetop::Runtime::SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- Ptolemy::TOML::FloatLiteral
- Defined in:
- lib/ptolemy/nodes.rb
Overview
Represents a Float
Instance Method Summary collapse
-
#to_value ⇒ Float
Evaluate a float by converting the text_value to a float directly.
Instance Method Details
#to_value ⇒ Float
Evaluate a float by converting the text_value to a float directly
141 142 143 |
# File 'lib/ptolemy/nodes.rb', line 141 def to_value text_value.to_f end |