Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Prism::Translation::Parser::Lexer#parse_float
parse_float(value)
lib/prism/translation/parser/lexer.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/prism/translation/parser/lexer.rb, line 402
def parse_float(value)
Float(value)
rescue ArgumentError
0.0
end
Parse a float from the string representation.