class RuboCop::Cop::Style::BisectedAttrAccessor

def correct_reader(corrector, macro, node, range)

def correct_reader(corrector, macro, node, range)
  attr_accessor = "attr_accessor #{macro.bisected_names.join(', ')}\n"
  if macro.all_bisected?
    corrector.replace(range, "#{indent(node)}#{attr_accessor}")
  else
    correction = "#{indent(node)}attr_reader #{macro.rest.join(', ')}"
    corrector.insert_before(node, attr_accessor)
    corrector.replace(node, correction)
  end
end