aboutsummaryrefslogtreecommitdiffstats
path: root/lib/irb/input-method.rb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2021-10-11 20:35:27 +0900
committergit <svn-admin@ruby-lang.org>2021-10-11 21:12:57 +0900
commit866a09dd9ea2775a3231c0e9833f3bca48947f30 (patch)
treebbbeb4715bb072b369162960990b591bd1bd94bb /lib/irb/input-method.rb
parentdcaaf79ca06a1825a0e489d1c9d188d8c0d6f36f (diff)
downloadruby-866a09dd9ea2775a3231c0e9833f3bca48947f30.tar.gz
[ruby/irb] Add --extra-doc-dir option to show doc dialog
https://github.com/ruby/irb/commit/3f79cb506f
Diffstat (limited to 'lib/irb/input-method.rb')
-rw-r--r--lib/irb/input-method.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 5efd5d8e21..dc95065f97 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -329,7 +329,9 @@ module IRB
name = result[pointer]
name = IRB::InputCompletor.retrieve_completion_data(name, doc_namespace: true)
- driver = RDoc::RI::Driver.new
+ options = {}
+ options[:extra_doc_dirs] = IRB.conf[:EXTRA_DOC_DIRS] unless IRB.conf[:EXTRA_DOC_DIRS].empty?
+ driver = RDoc::RI::Driver.new(options)
if key.match?(dialog.name)
begin