Skip to content

Drop Proc#bind#107

Open
Earlopain wants to merge 1 commit intothoughtbot:mainfrom
Earlopain:drop-proc-extension
Open

Drop Proc#bind#107
Earlopain wants to merge 1 commit intothoughtbot:mainfrom
Earlopain:drop-proc-extension

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