Skip to content

Commit a5de13b

Browse files
committed
Fix NoMethodError for start_with
1 parent ee074e9 commit a5de13b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/store.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -975,7 +975,7 @@ def marshal_load(file)
975975
case obj
976976
when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text
977977
else
978-
unless obj.class.name.start_with("RDoc::")
978+
unless obj.class.name.start_with?("RDoc::")
979979
raise TypeError, "not permitted class: #{obj.class.name}"
980980
end
981981
end

0 commit comments

Comments
 (0)