Flowdock
method

add_class_or_module

Importance_1
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.

Show source
Register or log in to add new notes.