End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Psych::ScalarScanner#parse_int
parse_int(string)
ext/psych/lib/psych/scalar_scanner.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/ext/psych/lib/psych/scalar_scanner.rb, line 103
def parse_int string
Integer(string.gsub(/[,_]/, ''))
end
Parse and return an int from string