Skip to content

Commit

Permalink
Fix NoMethodError for start_with
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Mar 21, 2024
1 parent 3322197 commit e21dfcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rdoc/store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e21dfcc

Please sign in to comment.