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
This code "a" .class despite of being a valid ruby code, can be improved by removing the space.
I've searched the documentation in order to find something already implementing this, but haven't found nothing, just the style cops for dot position in the method chain.
Input: "a" .class"
Expected: "a".class"
The text was updated successfully, but these errors were encountered:
This will throw a new offense anytime a space is around a dot call except
when the dot is the first thing on a line.
Note: This only works for dot calls and does not work with &. or ::
This code
"a" .class
despite of being a valid ruby code, can be improved by removing the space.I've searched the documentation in order to find something already implementing this, but haven't found nothing, just the style cops for dot position in the method chain.
Input:
"a" .class"
Expected:
"a".class"
The text was updated successfully, but these errors were encountered: