class RuboCop::Cop::Legacy::CorrectionsProxy

See docs.rubocop.org/rubocop/v1_upgrade_notes.html<br>Legacy support for Corrector#corrections

def <<(callable)

def <<(callable)
  suppress_clobbering { @corrector.transaction { callable.call(@corrector) } }
end

def concat(corrections)

def concat(corrections)
  if corrections.is_a?(CorrectionsProxy)
    suppress_clobbering { corrector.merge!(corrections.corrector) }
  else
    corrections.each { |correction| self << correction }
  end
end

def empty?

def empty?
  @corrector.empty?
end

def initialize(corrector)

def initialize(corrector)
  @corrector = corrector
end

def suppress_clobbering

def suppress_clobbering
  yield
rescue ::Parser::ClobberingError
  # ignore Clobbering errors
end