ruby-changes:67357
From: aycabta <ko1@a...>
Date: Mon, 30 Aug 2021 11:59:04 +0900 (JST)
Subject: [ruby-changes:67357] aeec02d7f3 (master): [ruby/irb] [].name to display the doc for Array.name
https://git.ruby-lang.org/ruby.git/commit/?id=aeec02d7f3 From aeec02d7f321916ca80ccc8361ccb82fdc779515 Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Mon, 30 Aug 2021 11:52:38 +0900 Subject: [ruby/irb] [].name to display the doc for Array.name https://github.com/ruby/irb/commit/7c2abc14d8 --- lib/irb/input-method.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index 8039f3a..725d142 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -325,6 +325,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L325 cursor_pos_to_render, result, pointer = context.pop(3) return nil if result.nil? or pointer.nil? name = result[pointer] + name = IRB::InputCompletor.retrieve_completion_data(name, doc_namespace: true) driver = RDoc::RI::Driver.new begin -- cgit v1.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/