Class RDoc::Context
In: lib/rdoc/code_objects.rb
Parent: CodeObject

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

Methods

Classes and Modules

Class RDoc::Context::Section

Attributes

aliases  [R] 
attributes  [R] 
constants  [R] 
in_files  [R] 
includes  [R] 
method_list  [R] 
name  [R] 
requires  [R] 
sections  [R] 
visibility  [R] 

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

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]

ruby-doc.org is a service of James Britt and Neurogami, a Ruby application development company in Phoenix, AZ.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.