You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: any_method.rb
    path of file: ./repos/ruby-packer/ruby/lib/rdoc
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
##
# AnyMethod is the base class for objects representing methods

class RDoc:
    
  def superclass_method
    return unless @calls_super
    return @superclass_method if @superclass_method

    parent.each_ancestor do |ancestor|
      if method = ancestor.method_list.find { |m| m.name == @name } then
        @superclass_method = method
        break
      end
    end