class RuboCop::Cop::Performance::AncestorsInclude

def on_send(node)

def on_send(node)
  return unless (subclass, superclass = ancestors_include_candidate?(node))
  return if subclass && !subclass.const_type?
  add_offense(range(node)) do |corrector|
    subclass_source = subclass ? subclass.source : 'self'
    corrector.replace(node, "#{subclass_source} <= #{superclass.source}")
  end
end