Class: Rubocop::Cop::SpaceInsideParens

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

Instance Attribute Summary

Attributes inherited from Cop

#correlations, #offences

Instance Method Summary collapse

Methods included from SpaceInside

#check_unwanted_space

Methods included from SurroundingSpace

#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

#get_parenObject



114
115
116
# File 'lib/rubocop/cop/surrounding_space.rb', line 114

def get_paren
  Paren.new(:on_lparen, :on_rparen, 'parentheses')
end