Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.
toplevel()public
Return the toplevel that owns us
# File lib/rdoc/code_objects.rb, line 466
def toplevel
return @toplevel if defined? @toplevel
@toplevel = self
@toplevel = @toplevel.parent until TopLevel === @toplevel
@toplevel
end Related methods
- Instance methods
- <=>
- add_alias
- add_alias_impl
- add_attribute
- add_class
- add_class_or_module
- add_constant
- add_include
- add_method
- add_module
- add_require
- add_to
- classes
- defined_in?
- each_attribute
- each_classmodule
- each_constant
- each_method
- find_enclosing_module_named
- find_local_symbol
- find_module_named
- find_symbol
- initialize_classes_and_modules
- initialize_methods_etc
- methods_matching
- modules
- ongoing_visibility=
- record_location
- remove_classes_and_modules
- remove_methods_etc
- set_current_section
- set_visibility_for
- toplevel
- Class methods
- new
- Protected methods
-
classes_hash -
modules_hash - Private methods
-
find_attribute_named -
find_constant_named -
find_file_named -
find_instance_method_named -
find_method_named