Class: Rubocop::Cop::SpaceInsideBrackets

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

Instance Attribute Summary

Attributes inherited from Cop

#correlations, #disabled_lines, #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



121
122
123
# File 'lib/rubocop/cop/surrounding_space.rb', line 121

def get_paren
  Paren.new(:on_lbracket, :on_rbracket, 'square brackets')
end