Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Use Integer.try_convert (new in ruby 3.1+) #316

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Sep 12, 2024

Now that the minimum ruby version is v3.1.0, we can use Integer.try_convert. This code was originally written using Integer.try_convert, but had to be changed for backward compatibility with ruby 2.7.

Now that the minimum ruby version is v3.1.0, we can use
Integer.try_convert.
@nevans nevans merged commit c198fcc into master Sep 13, 2024
18 checks passed
@nevans nevans deleted the use-Integer-try_convert branch September 13, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant