From 385c31e770566b2f07f3222464f08886fcedc31e Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 21 Mar 2024 13:18:13 +0900 Subject: [PATCH] [ruby/rdoc] Fix NoMethodError for start_with https://github.com/ruby/rdoc/commit/e21dfccb4a --- lib/rdoc/store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/store.rb b/lib/rdoc/store.rb index 495def5791..cd27d47dd1 100644 --- a/lib/rdoc/store.rb +++ b/lib/rdoc/store.rb @@ -978,7 +978,7 @@ class RDoc::Store case obj when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text else - unless obj.class.name.start_with("RDoc::") + unless obj.class.name.start_with?("RDoc::") raise TypeError, "not permitted class: #{obj.class.name}" end end