1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/irb] [].name to display the doc for Array.name

https://github.com/ruby/irb/commit/7c2abc14d8
This commit is contained in:
aycabta 2021-08-30 11:52:38 +09:00 committed by git
parent 1e2f10e8aa
commit aeec02d7f3

View file

@ -325,6 +325,7 @@ module IRB
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