method

add_class_or_module

v1_8_7_330 - Show latest stable - Class: RDoc::TopLevel
add_class_or_module(collection, class_type, name, superclass)
public

Adding a class or module to a TopLevel is special, as we only want one copy of a particular top-level class. For example, if both file A and file B implement class C, we only want one ClassModule object for C. This code arranges to share classes and modules between files.