Class

RDoc::TopLevel

Inheritance
< RDoc::Context < RDoc::CodeObject < Object

A TopLevel context is a source file

Attributes

Name Visibility R/W Description
diagram public RW
file_absolute_name public RW
file_relative_name public RW
file_stat public RW

Methods

Class

Visibility Signature
public all_classes_and_modules ()
public find_class_named (name)
public new (file_name)
public reset ()

Instance

Visibility Signature
public add_class_or_module (collection, class_type, name, superclass)
public find_class_or_module_named (symbol)
public find_local_symbol (symbol)
public find_module_named (name)
public full_name ()

Class Method Detail

all_classes_and_modules()

find_class_named(name)

new(file_name)

reset()

Instance Method Detail

add_class_or_module(collection, class_type, name, superclass)

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.

find_class_or_module_named(symbol)

find_local_symbol(symbol)

find_module_named(name)

Find a named module

full_name()