Class Methods
ext/psych/lib/psych/class_loader.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/ext/psych/lib/psych/class_loader.rb, line 75
def initialize classes, symbols
@classes = classes
@symbols = symbols
super()
end
No documentation available
Instance Methods
ext/psych/lib/psych/class_loader.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/ext/psych/lib/psych/class_loader.rb, line 93
def find klassname
if @classes.include? klassname
super
else
raise DisallowedClass, klassname
end
end
No documentation available
ext/psych/lib/psych/class_loader.rb
View on GitHub
# File tmp/rubies/ruby-2.5.9/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
No documentation available