Skip to Content Skip to Search

A singleton class

Methods
A
D

Instance Public methods

ancestors()

Adds the superclass to the included modules.

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

definition()

The definition of this singleton class, class << MyClassName

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