From f76d67f484b55131f45586e5f515db61e9bd41e7 Mon Sep 17 00:00:00 2001 From: aycabta Date: Tue, 26 May 2020 23:25:50 +0900 Subject: [PATCH] [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 --- lib/rdoc/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/context.rb b/lib/rdoc/context.rb index 7d5ea9890a..b3caa53aa1 100644 --- a/lib/rdoc/context.rb +++ b/lib/rdoc/context.rb @@ -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 ##