class RuboCop::Cop::Legacy::Corrector

See docs.rubocop.org/rubocop/cop_api_v1_changelog.html<br>Legacy Corrector for v0 API support.

def corrections

def corrections
  # warn "#corrections is deprecated. Open an issue if you have a valid usecase." TODO
  CorrectionsProxy.new(self)
end

def initialize(source, corr = [])

Support legacy second argument
def initialize(source, corr = [])
  super(source)
  if corr.is_a?(CorrectionsProxy)
    merge!(corr.send(:corrector))
  else
    # warn "Corrector.new with corrections is deprecated." unless corr.empty? TODO
    corr.each do |c|
      corrections << c
    end
  end
end