class RDoc::RI::Driver

def load_method(store, cache, klass, type, name)

def load_method(store, cache, klass, type, name)
  methods = store.public_send(cache)[klass]
  return unless methods
  method = methods.find do |method_name|
    method_name == name
  end
  return unless method
  store.load_method klass, "#{type}#{method}"
rescue RDoc::Store::MissingFileError => e
  comment = RDoc::Comment.new("missing documentation at #{e.file}")
  comment.parse
  method = RDoc::AnyMethod.new nil, name
  method.comment = comment
  method
end