From 84c0dcfca25a7d67e45f6585962de38f7854bc2f Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 12 Jan 2004 19:32:24 +0000 Subject: [PATCH] Display full name in class list git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/rdoc/ri/ri_driver.rb | 2 +- lib/rdoc/ri/ri_reader.rb | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index a210b8445f..6627531434 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Jan 13 04:29:52 2004 Dave Thomas + + * lib/rdoc/ri/ri_driver.rb (RiDriver::report_method_stuff): + Show fully-qualified class names in class list. + Tue Jan 13 01:24:17 2004 Yukihiro Matsumoto * file.c (test_wr): Rdoc fix. [ruby-core:02225] diff --git a/lib/rdoc/ri/ri_driver.rb b/lib/rdoc/ri/ri_driver.rb index 039a152c84..f6058cd51c 100644 --- a/lib/rdoc/ri/ri_driver.rb +++ b/lib/rdoc/ri/ri_driver.rb @@ -108,7 +108,7 @@ class RiDriver def process_args if @options.list_classes - classes = @ri_reader.class_names + classes = @ri_reader.full_class_names @display.list_known_classes(classes) else if ARGV.size.zero? diff --git a/lib/rdoc/ri/ri_reader.rb b/lib/rdoc/ri/ri_reader.rb index ddce38f101..02e6d49b79 100644 --- a/lib/rdoc/ri/ri_reader.rb +++ b/lib/rdoc/ri/ri_reader.rb @@ -53,7 +53,7 @@ module RI end # return the names of all classes and modules - def class_names + def full_class_names res = [] find_classes_in(res, @cache.toplevel) end @@ -61,7 +61,7 @@ module RI def find_classes_in(res, klass) classes = klass.classes_and_modules for c in classes - res << c.name + res << c.full_name find_classes_in(res, c) end res