[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
|
case obj
|
||||||
when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text
|
when true, false, nil, Array, Class, Encoding, Hash, Integer, String, Symbol, RDoc::Text
|
||||||
else
|
else
|
||||||
unless obj.class.name.start_with("RDoc::")
|
unless obj.class.name.start_with?("RDoc::")
|
||||||
raise TypeError, "not permitted class: #{obj.class.name}"
|
raise TypeError, "not permitted class: #{obj.class.name}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user