mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	Fix problem with ambiguous nested classes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									bd45695886
								
							
						
					
					
						commit
						831a294b0c
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								bin/ri
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue