summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-01 00:05:13 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-01 00:05:13 +0000
commit643afb37776ee016bffc03fc79ce4fe47f9a451f (patch)
treea6795d2688402e33a9f223b1455f89afb1998208
parentc657737286d7deaaec670a38d5c1e42c705b5bf9 (diff)
downloadruby-643afb37776ee016bffc03fc79ce4fe47f9a451f.tar.gz
ruby-643afb37776ee016bffc03fc79ce4fe47f9a451f.tar.xz
ruby-643afb37776ee016bffc03fc79ce4fe47f9a451f.zip
Fix problem with ambiguous nested classes
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rwxr-xr-xbin/ri2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index fff425a25..5f70c96d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Jan 1 09:03:20 2004 Dave Thomas <dave@pragprog.com>
+
+ * bin/ri (report_class_stuff): Fix problem with ambiguous nested
+ classes not matching.
+
Wed Dec 31 15:05:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
* lib/pathname.rb: Corrected small coding error.
diff --git a/bin/ri b/bin/ri
index 4567c66d4..0fee8a84d 100755
--- a/bin/ri
+++ b/bin/ri
@@ -209,7 +209,7 @@ def report_class_stuff(requested_class_name, namespaces)
if namespaces.size == 1
display_class_info(namespaces[0])
else
- entries = namespaces.find_all {|m| m.name == requested_class_name}
+ entries = namespaces.find_all {|m| m.full_name == requested_class_name}
if entries.size == 1
display_class_info(entries[0])
else