blob: 9e77a65c73afee2e478c62b6a444166ee7d9f542 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
##
# A singleton class
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
|