method
symbolize
v2_4_6 -
Show latest stable
- Class:
Psych::ClassLoader::Restricted
symbolize(sym)public
No documentation available.
# File ext/psych/lib/psych/class_loader.rb, line 81
def symbolize sym
return super if @symbols.empty?
if @symbols.include? sym
super
else
raise DisallowedClass, 'Symbol'
end
end