Skip to content

Commit e4a0e71

Browse files
committed
Fix NoMethodError for start_with
1 parent d98baf4 commit e4a0e71

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
@@ -978,7 +978,7 @@ def marshal_load(file)
978978
case obj
979979
when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text
980980
else
981-
unless obj.class.name.start_with("RDoc::")
981+
unless obj.class.name.start_with?("RDoc::")
982982
raise TypeError, "not permitted class: #{obj.class.name}"
983983
end
984984
end

0 commit comments

Comments
 (0)