diff options
author | aycabta <aycabta@gmail.com> | 2019-07-19 08:23:37 +0900 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-07-19 08:23:41 +0900 |
commit | c8ee44f44c0c7d333a33c62c811d1d0cdbc3554a (patch) | |
tree | 2c9ea924e6e2a6eeb59b2a46777dd724af82b6e2 /lib/irb/completion.rb | |
parent | d7fdf45a4ae1bcb6fac30a24b025d4f20149ba0a (diff) |
Fix showing doc of "nil.to_s", nil doesn't have #name
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r-- | lib/irb/completion.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index 84b1ad982c..f75dd0ebcd 100644 --- a/lib/irb/completion.rb +++ b/lib/irb/completion.rb @@ -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 |