Class: Rubocop::Cop::SpaceInsideBrackets
- 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
Methods included from SurroundingSpace
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_paren ⇒ Object
121 122 123 |
# File 'lib/rubocop/cop/surrounding_space.rb', line 121 def get_paren Paren.new(:on_lbracket, :on_rbracket, 'square brackets') end |