class RuboCop::Cop::Style::BisectedAttrAccessor
def on_class(class_node)
def on_class(class_node) @macros_to_rewrite[class_node] = Set.new find_macros(class_node.body).each_value do |macros| bisected = find_bisection(macros) next unless bisected.any? macros.each do |macro| attrs = macro.bisect(*bisected) next if attrs.none? @macros_to_rewrite[class_node] << macro attrs.each { |attr| register_offense(attr) } end end end