Class: Rubocop::Cop::Style::SpaceInsideParens

Inherits:
Cop
  • Object
show all
Includes:
SpaceInside
Defined in:
lib/rubocop/cop/style/surrounding_space.rb

Overview

Checks for spaces inside ordinary round parentheses.

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

#investigate

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

#specificsObject



258
259
260
# File 'lib/rubocop/cop/style/surrounding_space.rb', line 258

def specifics
  [:tLPAREN2, :tRPAREN, 'parentheses']
end