summaryrefslogtreecommitdiff
path: root/lib/rdoc/single_class.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-02 00:32:30 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-02 00:32:30 +0000
commitcc2a16d94d744d14d4a5eb06eca22137f8a9b79e (patch)
tree2907a20e2d9ae3a2831707056bb3fe2d384b066d /lib/rdoc/single_class.rb
parent918f625a5eeba35b9b191cb39c1d634b4cc7efee (diff)
Import RDoc 3.5.1
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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