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

Drop Proc#bind #107

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Earlopain
Copy link
Contributor

Proc responds to instance_exec since forever ago.
Official Ruby docs only go back to 2.0, so I added that as the minimum version, if someone should for some reason still use rubies before that.

https://docs.ruby-lang.org/en/2.0.0/BasicObject.html#method-i-instance_exec

Stumbled over this because of rubocop/rubocop-performance#464. The next version will be 3.0.0, seems appropriate to drop in a major version.

Proc responds to `instance_exec` since forever ago
Official Ruby docs only go back to 2.0, so I added that as the minimum version,
if someone should for some reason still use rubies before that.

https://docs.ruby-lang.org/en/2.0.0/BasicObject.html#method-i-instance_exec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant