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::MSG

Instance Attribute Summary

Attributes inherited from Cop

#debug, #disabled_lines, #offences

Instance Method Summary collapse

Methods included from SpaceAfterCommaEtc

#inspect, #offset

Methods inherited from Cop

#add_offence, cop_name, #has_report?, #ignore_node, inherited, #initialize, #inspect, #name, #on_comment

Constructor Details

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

Instance Method Details

#kind(token) ⇒ Object



29
30
31
# File 'lib/rubocop/cop/space_after_comma_etc.rb', line 29

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