Module: Dhall::Parser::NumericDoubleLiteral
- Defined in:
- lib/dhall/parser.rb
Instance Method Summary collapse
Instance Method Details
#value ⇒ Object
228 229 230 231 232 |
# File 'lib/dhall/parser.rb', line 228 def value float = string.to_f raise Citrus::ParseError, input if float.nan? || float.infinite? Double.new(value: float) end |