This method is deprecated or moved on the latest stable version.
The last existing version (v2_2_9) is shown here.
new(options, from_path, context, markup = nil)
public
Creates a new
crossref resolver that generates links relative to context which
lives at from_path in the generated files. ‘#’ characters on
references are removed unless show_hash is true. Only method
names preceded by ‘#’ or ‘::’ are linked, unless
hyperlink_all is true.
# File lib/rdoc/markup/to_html_crossref.rb, line 31
def initialize(options, from_path, context, markup = nil)
raise ArgumentError, 'from_path cannot be nil' if from_path.nil?
super options, markup
@context = context
@from_path = from_path
@hyperlink_all = @options.hyperlink_all
@show_hash = @options.show_hash
crossref_re = @hyperlink_all ? ALL_CROSSREF_REGEXP : CROSSREF_REGEXP
@markup.add_special crossref_re, :CROSSREF
@cross_reference = RDoc::CrossReference.new @context
end