You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Since
def
started returning the method name, it's been possible to define private (or protected) methods like this: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.
The text was updated successfully, but these errors were encountered: