Sha256: 843b71dec629885b04c0a3bf08ed011fbe753d2fe4dd04fe0cec5705c2b96b1a

Contents?: true

Size: 359 Bytes

Versions: 16

Compression:

Stored size: 359 Bytes

Contents

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

  ##
  # The definition of this singleton class, <tt>class << MyClassName</tt>

  def definition
    "class << #{full_name}"
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
rdoc-3.9.5 lib/rdoc/single_class.rb
rdoc-3.9.4 lib/rdoc/single_class.rb
rdoc-3.9.3 lib/rdoc/single_class.rb
rdoc-3.9.2 lib/rdoc/single_class.rb
rdoc-3.9.1 lib/rdoc/single_class.rb
rdoc-3.9 lib/rdoc/single_class.rb
rdoc-3.8 lib/rdoc/single_class.rb
rdoc-3.7 lib/rdoc/single_class.rb
rdoc-3.6.1 lib/rdoc/single_class.rb
rdoc-3.6 lib/rdoc/single_class.rb
rdoc-3.5.3 lib/rdoc/single_class.rb
rdoc-3.5.2 lib/rdoc/single_class.rb
rdoc-3.5.1 lib/rdoc/single_class.rb
rdoc-3.5 lib/rdoc/single_class.rb
rdoc-3.4 lib/rdoc/single_class.rb
rdoc-3.3 lib/rdoc/single_class.rb