mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Fix showing doc of "nil.to_s", nil doesn't have #name
This commit is contained in:
parent
d7fdf45a4a
commit
c8ee44f44c
2 changed files with 8 additions and 1 deletions
|
@ -237,7 +237,7 @@ module IRB
|
|||
candidates.uniq!
|
||||
end
|
||||
if doc_namespace
|
||||
"#{rec.name}#{sep}#{candidates.find{ |i| i == message }}"
|
||||
"#{rec.class.name}#{sep}#{candidates.find{ |i| i == message }}"
|
||||
else
|
||||
select_message(receiver, message, candidates, sep)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue