Class RDoc::Context
In: lib/rdoc/code_objects.rb
Parent: CodeObject
CodeObject Include Context Alias Attr AnyMethod Constant Require ClassModule NormalModule SingleClass AnonClass NormalClass TopLevel RubyParser RubyToken RuntimeError Error Error AttributeFormatter AnsiFormatter OverstrikeFormatter HtmlFormatter DefaultDisplay NamedThing IncludedModule Attribute Constant MethodSummary AliasName ClassEntry TopLevelEntry Description MethodDescription ModuleDescription ClassDescription Formatter SimpleFormatter HTML HTMLInOne XML CHM Context Method Class File Element Edge Node Subgraph Digraph SimpleElement Port Options Diagram Fortran95parser RDoc SimpleParser Token Markup TemplatePage Stats C_Parser NameDescriptor Cache Reader Writer Driver MethodEntry RI AllReferences Display Paths RI MarkUp Generator TokenStream ParserFactory DOT RDoc dot/f_4.png

A Context is something that can hold modules, classes, methods, attributes, aliases, requires, and includes. Classes, modules, and files are all Contexts.

Methods

Public Class methods

Public Instance methods

allow us to sort modules by name

Requires always get added to the top-level (file) context

map the class hash to an array externally

Return true if at least part of this thing was defined in file

Iterate over all the classes and modules in this object

find a module at a higher scope

Find a named module

Look up the given symbol. If method is non-nil, then we assume the symbol references a module that contains that method

map the module hash to an array externally

Change the default visibility for new methods

Record the file that we happen to find it in

and remove classes and modules when we see a :nodoc: all

If a class‘s documentation is turned off after we‘ve started collecting methods etc., we need to remove the ones we have

Given an array methods of method names, set the visibility of the corresponding AnyMethod object

Return the toplevel that owns us

[Validate]