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 doesn't accept _other #936

Closed
agrimm opened this issue Mar 31, 2014 · 0 comments
Closed

OpMethod doesn't accept _other #936

agrimm opened this issue Mar 31, 2014 · 0 comments

Comments

@agrimm
Copy link
Contributor

agrimm commented Mar 31, 2014

The following code will have OpMethod complain that _other should be other instead.

class NullBusiness
  def <=>(_other)
    0
  end
end

However, if I do that, then ruby-lint will complain that other should be _other, because the argument is not used.

Should OpMethod's criteria be changed? If so, how?

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