diff options
Diffstat (limited to 'lib/rdoc/ri/ri_reader.rb')
-rw-r--r-- | lib/rdoc/ri/ri_reader.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/rdoc/ri/ri_reader.rb b/lib/rdoc/ri/ri_reader.rb index eb56d654fb..dd647b3f89 100644 --- a/lib/rdoc/ri/ri_reader.rb +++ b/lib/rdoc/ri/ri_reader.rb @@ -21,6 +21,16 @@ module RI result end + def find_class_by_name(full_name) + names = full_name.split(/::/) + ns = @cache.toplevel + for name in names + ns = ns.contained_class_named(name) + return nil if ns.nil? + end + get_class(ns) + end + def find_methods(name, is_class_method, namespaces) result = [] namespaces.each do |ns| |