summaryrefslogtreecommitdiff
path: root/lib/rdoc/single_class.rb
blob: 60336a759b4b6ed51e34c8b15f24af00bf251cc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require 'rdoc/class_module'

##
# A singleton class

class RDoc::SingleClass < RDoc::ClassModule

  # Adds the superclass to the included modules.
  def ancestors
    superclass ? super + [superclass] : super
  end

end