1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] Rescue NotFoundError of RDoc::RI::Driver#expand_name

https://github.com/ruby/irb/commit/c5f13b23d7
This commit is contained in:
aycabta 2021-08-29 20:05:57 +09:00 committed by git
parent ae4e301d5d
commit cde84a5baa

View file

@ -323,7 +323,11 @@ module IRB
name = result[pointer]
driver = RDoc::RI::Driver.new
name = driver.expand_name(name)
begin
name = driver.expand_name(name)
rescue RDoc::RI::Driver::NotFoundError
return nil
end
doc = nil
used_for_class = false
if not name =~ /#|\./