Class: Rubocop::Cop::SpaceAfterComma

Inherits:
Cop
  • Object
show all
Includes:
SpaceAfterCommaEtc
Defined in:
lib/rubocop/cop/space_after_comma_etc.rb

Constant Summary

Constants included from SpaceAfterCommaEtc

Rubocop::Cop::SpaceAfterCommaEtc::ERROR_MESSAGE

Instance Attribute Summary

Attributes inherited from Cop

#correlations, #offences

Instance Method Summary collapse

Methods included from SpaceAfterCommaEtc

#inspect

Methods inherited from Cop

#add_offence, #has_report?, inherited, #initialize

Constructor Details

This class inherits a constructor from Rubocop::Cop::Cop

Instance Method Details

#kind(token) ⇒ Object



21
22
23
# File 'lib/rubocop/cop/space_after_comma_etc.rb', line 21

def kind(token)
  'comma' if token.type == :on_comma
end