diff --git a/lib/rdoc/code_object/class_module.rb b/lib/rdoc/code_object/class_module.rb index 9e6909ac7d..c2ad779b7a 100644 --- a/lib/rdoc/code_object/class_module.rb +++ b/lib/rdoc/code_object/class_module.rb @@ -634,7 +634,7 @@ def parse comment_location # Path to this class or module for use with HTML generator output. def path - http_url @store.rdoc.generator.class_dir + http_url end ## diff --git a/lib/rdoc/code_object/context.rb b/lib/rdoc/code_object/context.rb index c688d562c3..061eb47ad3 100644 --- a/lib/rdoc/code_object/context.rb +++ b/lib/rdoc/code_object/context.rb @@ -973,10 +973,10 @@ def fully_documented? ## # URL for this with a +prefix+ - def http_url(prefix) + def http_url path = name_for_path path = path.gsub(/<<\s*(\w*)/, 'from-\1') if path =~ /<