[ruby/rdoc] Fix NoMethodError for start_with
https://github.com/ruby/rdoc/commit/e21dfccb4a
This commit is contained in:
parent
f5dc9c98e5
commit
385c31e770
@ -978,7 +978,7 @@ class RDoc::Store
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user