In Files

  • ruby-3.1.2/lib/rdoc/single_class.rb

Files

Class/Module Index [+]

Quicksearch

RDoc::SingleClass

A singleton class

Public Instance Methods

ancestors() click to toggle source

Adds the superclass to the included modules.

 
               # File ruby-3.1.2/lib/rdoc/single_class.rb, line 10
def ancestors
  superclass ? super + [superclass] : super
end
            
definition() click to toggle source

The definition of this singleton class, class << MyClassName

 
               # File ruby-3.1.2/lib/rdoc/single_class.rb, line 21
def definition
  "class << #{full_name}"
end