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

OpMethod should also check #eql? and #equal? #1339

Closed
bquorning opened this issue Sep 17, 2014 · 1 comment
Closed

OpMethod should also check #eql? and #equal? #1339

bquorning opened this issue Sep 17, 2014 · 1 comment

Comments

@bquorning
Copy link
Contributor

It seems a bit inconsistent that Style/OpMethod checks the name of the argument to #== and #===, but doesn’t check #eql? or #equal?.

For the curious, #== and #equal? are defined on BasicObject while #=== and #eql? are defined on Object.

@bquorning
Copy link
Contributor Author

Thanks! 👍

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

No branches or pull requests

1 participant