mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Display full name in class list
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6c862db688
commit
84c0dcfca2
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Jan 13 04:29:52 2004 Dave Thomas <dave@pragprog.com>
|
||||
|
||||
* 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 <matz@ruby-lang.org>
|
||||
|
||||
* file.c (test_wr): Rdoc fix. [ruby-core:02225]
|
||||
|
|
|
@ -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?
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue