Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,13 @@ def rdoc_ri_driver

begin
require 'rdoc'
rescue LoadError
@rdoc_ri_driver = nil
else
options = {}
options[:extra_doc_dirs] = IRB.conf[:EXTRA_DOC_DIRS] unless IRB.conf[:EXTRA_DOC_DIRS].empty?
# RDoc::RI::Driver.new requires more of rdoc (rdoc 8.1 requires rbs);
# a library that is not there means no document, not an error
@rdoc_ri_driver = RDoc::RI::Driver.new(options)
rescue LoadError
@rdoc_ri_driver = nil
end
end

Expand Down
Loading