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:
parent
f6e789e3b0
commit
f76d67f484
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
##
|
||||
|
|
Loading…
Reference in a new issue