Class: RDoc::SingleClass (Ruby 2.3.4)

In Files

  • rdoc/single_class.rb

Class/Module Index [+]

Quicksearch

RDoc::SingleClass

frozen_string_literal: false

A singleton class

Public Instance Methods

ancestors()

Adds the superclass to the included modules.

 
               # File rdoc/single_class.rb, line 10
def ancestors
  superclass ? super + [superclass] : super
end
            
definition()

The definition of this singleton class, class << MyClassName

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