Module: Rubocop::Cop::SurroundingSpace
- Included in:
- SpaceAroundBraces, SpaceAroundOperators, SpaceInside
- Defined in:
- lib/rubocop/cop/surrounding_space.rb
Instance Method Summary collapse
Instance Method Details
#inspect(file, source, tokens, sexp) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rubocop/cop/surrounding_space.rb', line 6 def inspect(file, source, tokens, sexp) @correlations.sort.each do |ix, grammar_path| check_missing_space(tokens, ix, grammar_path) end tokens.each_index { |ix| check_unwanted_space(tokens, ix) } end |