29 lines
866 B
Diff
29 lines
866 B
Diff
From a5de13bf0f0c26f8e764e82b5bf4bf8bffc7198e Mon Sep 17 00:00:00 2001
|
|
From: Hiroshi SHIBATA <hsbt@ruby-lang.org>
|
|
Date: Thu, 21 Mar 2024 13:18:13 +0900
|
|
Subject: [PATCH] Fix NoMethodError for start_with
|
|
|
|
Reference:https://github.com/ruby/rdoc/commit/a5de13bf0f0c26f8e764e82b5bf4bf8bffc7198e
|
|
Conflict:NA
|
|
---
|
|
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 5b663d7..c793e49 100644
|
|
--- a/lib/rdoc/store.rb
|
|
+++ b/lib/rdoc/store.rb
|
|
@@ -975,7 +975,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
|
|
--
|
|
2.33.0
|
|
|
|
|