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

RemoveUnusedMethod check will consider methods private if they are below the private flag of a nested class #297

Open
BenMusch opened this issue Jul 17, 2017 · 0 comments

Comments

@BenMusch
Copy link

BenMusch commented Jul 17, 2017

Example:

class Foo
  class Bar
    def public_nested_method; end

    private
    
    def private_nested_method; end
  end

  def public_method; end
end

In this example, the method public_method would be considered private, because it is below the "private" flag in the nested object, even though it is actually a public method

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