Adds the class or module mod to the modules or classesHashself_hash, and to all_hash (either
TopLevel::modules_hash or TopLevel::classes_hash), unless
#done_documenting is true. Sets the #parent of mod to
self, and its #section to #current_section. Returns
mod.
# File lib/rdoc/context.rb, line 406
def add_class_or_module mod, self_hash, all_hash
mod.section = current_section # TODO declaring context? something is
# wrong here...
mod.parent = self
mod.store = @store
unless @done_documenting then
self_hash[mod.name] = mod
# this must be done AFTER adding mod to its parent, so that the full
# name is correct:
all_hash[mod.full_name] = mod
end
mod
end