link(name, text)
Creates an HTML link to name with the given text.
# File lib/rdoc/markup/to_html_crossref.rb, line 108 def link name, text ref = @cross_reference.resolve name, text case ref when String then ref else "<a href=\"#{ref.as_href @from_path}\">#{text}</a>" end end