From 866a09dd9ea2775a3231c0e9833f3bca48947f30 Mon Sep 17 00:00:00 2001 From: aycabta Date: Mon, 11 Oct 2021 20:35:27 +0900 Subject: [ruby/irb] Add --extra-doc-dir option to show doc dialog https://github.com/ruby/irb/commit/3f79cb506f --- lib/irb/context.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/irb/context.rb') diff --git a/lib/irb/context.rb b/lib/irb/context.rb index 31d4126e5c..0a46c1b1d4 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -125,6 +125,8 @@ module IRB end self.save_history = IRB.conf[:SAVE_HISTORY] if IRB.conf[:SAVE_HISTORY] + @extra_doc_dirs = IRB.conf[:EXTRA_DOC_DIRS] + @echo = IRB.conf[:ECHO] if @echo.nil? @echo = true @@ -241,6 +243,9 @@ module IRB # # If set to +false+, ^D will quit irb. attr_accessor :ignore_eof + # Specify the installation locations of the ri file to be displayed in the + # document dialog. + attr_accessor :extra_doc_dirs # Whether to echo the return value to output or not. # # Uses IRB.conf[:ECHO] if available, or defaults to +true+. -- cgit v1.2.3