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