summaryrefslogtreecommitdiff
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.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/rdoc/single_class.rb b/lib/rdoc/single_class.rb
index 60336a759b..e48758d9c8 100644
--- a/lib/rdoc/single_class.rb
+++ b/lib/rdoc/single_class.rb
@@ -5,10 +5,19 @@ require 'rdoc/class_module'
class RDoc::SingleClass < RDoc::ClassModule
+ ##
# Adds the superclass to the included modules.
+
def ancestors
superclass ? super + [superclass] : super
end
+ ##
+ # The definition of this singleton class, <tt>class << MyClassName</tt>
+
+ def definition
+ "class << #{full_name}"
+ end
+
end