Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
These similar methods exist in v2_5_5:
complete(min_visibility)
public
Prepares the RDoc code object tree for use by a
generator.
It finds unique classes/modules defined, and replaces classes/modules that
are aliases for another one by a copy with RDoc::ClassModule#is_alias_for
set.
It updates the RDoc::ClassModule#constant_aliases attribute of “real”
classes or modules.
It also completely removes the classes and modules that should be removed
from the documentation and the methods that have a visibility below
min_visibility, which is the --visibility option.
See also RDoc::Context#remove_from_documentation?
Show source
def self.complete min_visibility
fix_basic_object_inheritance
all_classes_and_modules.each { |cm| cm.ancestors }
remove_nodoc @all_classes_hash
remove_nodoc @all_modules_hash
@unique_classes = find_unique @all_classes_hash
@unique_modules = find_unique @all_modules_hash
unique_classes_and_modules.each do |cm|
cm.complete min_visibility
end
@all_files_hash.each_key do |file_name|
tl = @all_files_hash[file_name]
unless RDoc::Parser::Simple === tl.parser then
tl.modules_hash.clear
tl.classes_hash.clear
tl.classes_or_modules.each do |cm|
name = cm.full_name
if cm.type == 'class' then
tl.classes_hash[name] = cm if @all_classes_hash[name]
else
tl.modules_hash[name] = cm if @all_modules_hash[name]
end
end
end
end
end