method
find_module_named
v1_9_1_378 -
Show latest stable
- Class:
RDoc::Context
find_module_named(name)public
Find a named module
# File lib/rdoc/code_objects.rb, line 429
def find_module_named(name)
# First check the enclosed modules, then check the module itself,
# then check the enclosing modules (this mirrors the check done by
# the Ruby parser)
res = @modules[name] || @classes[name]
return res if res
return self if self.name == name
find_enclosing_module_named(name)
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