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

[ruby/rdoc] Fix RDoc::Context#instance_method_list

The warn method returns nil, it's a bug of #instance_method_list.

https://github.com/ruby/rdoc/commit/a20df89263
This commit is contained in:
aycabta 2020-05-26 23:25:50 +09:00
parent f6e789e3b0
commit f76d67f484

View file

@ -1003,8 +1003,8 @@ class RDoc::Context < RDoc::CodeObject
# TODO remove this later
def instance_method_list
@instance_methods ||= method_list.reject { |a| a.singleton }
warn '#instance_method_list is obsoleted, please use #instance_methods'
@instance_methods ||= method_list.reject { |a| a.singleton }
end
##