A TopLevel context is a representation of the contents of a single file
- #
- A
- B
- C
- D
- E
- F
- H
- L
- M
- N
- O
- P
- S
- T
MARSHAL_VERSION | = | 0 |
[RW] | absolute_name | Absolute name of this file |
[R] | classes_or_modules | All the classes or modules that were declared in this file. These are
assigned to either |
[RW] | file_stat | This TopLevel's File::Stat struct |
[RW] | parser | The parser that processed this file |
[RW] | relative_name | Relative name of this file |
Creates a new TopLevel for the file at
absolute_name
. If documentation is being generated outside
the source dir relative_name
is relative to the source
directory.
# File lib/rdoc/top_level.rb, line 42 def initialize absolute_name, relative_name = absolute_name super() @name = nil @absolute_name = absolute_name @relative_name = relative_name @file_stat = File.stat(absolute_name) rescue nil # HACK for testing @diagram = nil @parser = nil @classes_or_modules = [] end
An RDoc::TopLevel is equal to another with the same #relative_name
Adds an_alias
to Object
instead of
self
.
Adds constant
to Object
instead of
self
.
Adds include
to Object
instead of
self
.
Adds method
to Object
instead of
self
.
Adds class or module mod
. Used in the building phase by the
ruby parser.
Returns a URL for this source file on some web repository. Use the -W command line option to set.
Only a TopLevel that contains text file) will be displayed. See also RDoc::CodeObject#display?
See RDoc::TopLevel::find_class_or_module
Finds a class or module named symbol
Finds a module or class with name
Returns the relative name of this file
An RDoc::TopLevel has the same hash as another with the same #relative_name
URL for this with a prefix
Returns the NormalClass “Object”, creating it if not found.
Records self
as a location in “Object”.
Base name of this file without the extension
Path to this file for use with HTML generator output.
Search record used by RDoc::Generator::JsonIndex