mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
parent
f5dc9c98e5
commit
385c31e770
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue