ruby-changes:67626
From: Filip <ko1@a...>
Date: Mon, 6 Sep 2021 07:10:39 +0900 (JST)
Subject: [ruby-changes:67626] be5159c2f8 (master): [ruby/irb] Pass RI options to help
https://git.ruby-lang.org/ruby.git/commit/?id=be5159c2f8 From be5159c2f8c2e41b727ed2149486458b42ca4c07 Mon Sep 17 00:00:00 2001 From: Filip Pyda <filip.pyda@g...> Date: Fri, 16 Jul 2021 10:35:00 +0200 Subject: [ruby/irb] Pass RI options to help https://github.com/ruby/irb/commit/9b98d1afab --- lib/irb/cmd/help.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb index 0629479..d82e78f 100644 --- a/lib/irb/cmd/help.rb +++ b/lib/irb/cmd/help.rb @@ -17,7 +17,8 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/cmd/help.rb#L17 class Help < Nop def execute(*names) require 'rdoc/ri/driver' - IRB::ExtendCommand::Help.const_set(:Ri, RDoc::RI::Driver.new) + opts = RDoc::RI::Driver.process_args([]) + IRB::ExtendCommand::Help.const_set(:Ri, RDoc::RI::Driver.new(opts)) rescue LoadError, SystemExit IRB::ExtendCommand::Help.remove_method(:execute) # raise NoMethodError in ensure -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/