From e4a0e71e6f1032f8b4e5e58b4ef60d702c22ce17 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Thu, 21 Mar 2024 13:18:13 +0900 Subject: [PATCH] Fix NoMethodError for start_with --- 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 @@ def marshal_load(file) 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