# File lib/rdoc/markup/to_html_crossref.rb, line 31 def initialize(from_path, context, show_hash, hyperlink_all = false, markup = nil) raise ArgumentError, 'from_path cannot be nil' if from_path.nil? super markup crossref_re = hyperlink_all ? ALL_CROSSREF_REGEXP : CROSSREF_REGEXP @cross_reference = RDoc::CrossReference.new context @markup.add_special crossref_re, :CROSSREF @context = context @from_path = from_path @hyperlink_all = hyperlink_all @show_hash = show_hash end