Class: Rubocop::Cop::Style::SpaceInsideBrackets
- Includes:
- SpaceInside
- Defined in:
- lib/rubocop/cop/style/surrounding_space.rb
Overview
Checks for spaces inside square brackets.
Constant Summary
Constants included from SpaceInside
Rubocop::Cop::Style::SpaceInside::MSG
Instance Attribute Summary
Attributes inherited from Cop
#autocorrect, #corrections, #debug, #disabled_lines, #offences
Instance Method Summary collapse
Methods included from SpaceInside
Methods included from SurroundingSpace
#index_of_first_token, #index_of_last_token, #space_between?, #token_table
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
#specifics ⇒ Object
267 268 269 |
# File 'lib/rubocop/cop/style/surrounding_space.rb', line 267 def specifics [:tLBRACK, :tRBRACK, 'square brackets'] end |