From 8586f021f8db193b746079aff7ee50461957f39d Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 28 Oct 2018 01:56:28 +0000 Subject: rdoc/parser/c.rb: ignore dynamically added methods * lib/rdoc/parser/c.rb (RDoc::Parser::C#deduplicate_call_seq): skip dynamically added methods at runtime, because the class name is unknown and the defined methods are not accessible from that class. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rdoc/parser/c.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb index 183538d54b..425ea11f63 100644 --- a/lib/rdoc/parser/c.rb +++ b/lib/rdoc/parser/c.rb @@ -217,6 +217,7 @@ class RDoc::Parser::C < RDoc::Parser def deduplicate_call_seq @methods.each do |var_name, functions| class_name = @known_classes[var_name] + next unless class_name class_obj = find_class var_name, class_name functions.each_value do |method_names| -- cgit v1.2.3