aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/single_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rdoc/single_class.rb')
-rw-r--r--lib/rdoc/single_class.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rdoc/single_class.rb b/lib/rdoc/single_class.rb
index 1226d56f84..60336a759b 100644
--- a/lib/rdoc/single_class.rb
+++ b/lib/rdoc/single_class.rb
@@ -5,8 +5,9 @@ require 'rdoc/class_module'
class RDoc::SingleClass < RDoc::ClassModule
+ # Adds the superclass to the included modules.
def ancestors
- includes + [superclass]
+ superclass ? super + [superclass] : super
end
end