If the list of matching methods contains exactly one entry, or if it
contains an entry that exactly matches the requested method, then display
that entry, otherwise display the list of matching method names
# File lib/rdoc/ri/ri_driver.rb, line 49
def report_method_stuff(requested_method_name, methods)
if methods.size == 1
method = @ri_reader.get_method(methods[0])
@display.display_method_info(method)
else
entries = methods.find_all {|m| m.name == requested_method_name}
if entries.size == 1
method = @ri_reader.get_method(entries[0])
@display.display_method_info(method)
else
@display.display_method_list(methods)
end
end
end