aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/generator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/generator.rb')
-rw-r--r--lib/rdoc/generator.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/rdoc/generator.rb b/lib/rdoc/generator.rb
index 00a5ad45db..fbc08c4e20 100644
--- a/lib/rdoc/generator.rb
+++ b/lib/rdoc/generator.rb
@@ -489,7 +489,7 @@ module RDoc::Generator
@html_file = html_file
@html_class = self
- @is_module = context.is_module?
+ @is_module = context.module?
@values = {}
context.viewer = self
@@ -619,16 +619,16 @@ module RDoc::Generator
@values["title"] = "#{@values['classmod']}: #{h_name}"
c = @context
- c = c.parent while c and !c.diagram
- if c && c.diagram
+ c = c.parent while c and not c.diagram
+
+ if c and c.diagram then
@values["diagram"] = diagram_reference(c.diagram)
end
@values["full_name"] = h_name
- parent_class = @context.superclass
-
- if parent_class
+ if not @context.module? and @context.superclass then
+ parent_class = @context.superclass
@values["parent"] = CGI.escapeHTML(parent_class)
if parent_name