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 4a0e509 commit d22ba93
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 @@ -975,7 +975,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 d22ba93

Please sign in to comment.