class RuboCop::Cop::Layout::SpaceBeforeComma
Checks for comma (‘,`) preceded by space.
@example
# bad [1 , 2 , 3] a(1 , 2) each { |a , b| } # good [1, 2, 3] a(1, 2) each { |a, b| }
Public Instance Methods
Source
# File lib/rubocop/cop/layout/space_before_comma.rb, line 23 def kind(token) 'comma' if token.comma? end