Preview Ruby 4.1 is a preview. It can change before the final release. 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-4.1.0-preview1/ext/psych/lib/psych/scalar_scanner.rb, line 121
def parse_int string
Integer(string.delete(',_'))
end
Parse and return an int from string