class RDoc::SingleClass - rdoc-5.1.0 Documentation

# class RDoc::SingleClass

frozen_string_literal: false

A singleton class

### Public Instance Methods

ancestors() click to toggle source

Adds the superclass to the included modules.

Calls superclass method RDoc::ClassModule#ancestors

    # File 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 lib/rdoc/single_class.rb, line 21
    def definition
      "class << #{full_name}"
    end