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

one-line private method declaration gives "misindented method" error #60

Open
kerryb opened this issue Sep 13, 2014 · 0 comments
Open

Comments

@kerryb
Copy link

kerryb commented Sep 13, 2014

Since def started returning the method name, it's been possible to define private (or protected) methods like this:

private def foo
  # ...
end

I'm not sure this is a common ruby idiom yet, but I like it. However, I noticed that sandi_meter reports this as a "misindented method", and it's counted in the summary as if it were a method over five lines.

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