Class: Rubocop::Cop::Style::SpaceAfterComma
- Includes:
- SpaceAfterCommaEtc
- Defined in:
- lib/rubocop/cop/style/space_after_comma_etc.rb
Overview
Checks for comma (,) not follwed by some kind of space.
Constant Summary
Constants included from SpaceAfterCommaEtc
Rubocop::Cop::Style::SpaceAfterCommaEtc::MSG
Instance Attribute Summary
Attributes inherited from Cop
#autocorrect, #corrections, #debug, #disabled_lines, #offences
Instance Method Summary collapse
Methods included from SpaceAfterCommaEtc
Methods inherited from Cop
#add_offence, all, #autocorrect_action, cop_name, cop_type, #do_autocorrect, #ignore_node, inherited, #initialize, lint?, #name, rails?, style?
Constructor Details
This class inherits a constructor from Rubocop::Cop::Cop
Instance Method Details
#kind(token) ⇒ Object
33 34 35 |
# File 'lib/rubocop/cop/style/space_after_comma_etc.rb', line 33 def kind(token) 'comma' if token.type == :tCOMMA end |