class Psych::ClassLoader::Restricted

Public Class Methods

new (classes, symbols)
Calls superclass method BasicObject::new
# File ext/psych/lib/psych/class_loader.rb, line 77
def initialize classes, symbols
  @classes = classes
  @symbols = symbols
  super()
end

Public Instance Methods

symbolize (sym)
Calls superclass method
# File ext/psych/lib/psych/class_loader.rb, line 83
def symbolize sym
  return super if @symbols.empty?

  if @symbols.include? sym
    super
  else
    raise DisallowedClass.new('load', 'Symbol')
  end
end