load_method(store, cache, klass, type, name)
public
Loads RI data for method name on
klass from store. type and cache
indicate if it is a class or instance method.
# File lib/rdoc/ri/driver.rb, line 1190
def load_method store, cache, klass, type, name
methods = store.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}").parse
method = RDoc::AnyMethod.new nil, name
method.comment = comment
method
end