Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_1_378) is shown here.
main_url()
private
Returns the url of the main page
Show source
def main_url
main_page = @options.main_page
if main_page then
main_page_ref = RDoc::Generator::AllReferences[main_page]
if main_page_ref then
return main_page_ref.path
else
$stderr.puts "Could not find main page #{main_page}"
end
end
@files.each do |file|
if file.name =~ /^README/ then
return file.path
end
end
@files.each do |file|
if file.document_self then
return file.path
end
end
raise RDoc::Error, "Couldn't find anything to document (perhaps :stopdoc: has been used in all classes)!"
end