Class: FIRM::Serializable::YAML::RestrictedRelaxed

Inherits:
YAML::ClassLoader
  • Object
show all
Defined in:
lib/firm/serializer/yaml.rb

Instance Method Summary collapse

Constructor Details

#initialize(classes) ⇒ RestrictedRelaxed

Returns a new instance of RestrictedRelaxed.



57
58
59
60
61
# File 'lib/firm/serializer/yaml.rb', line 57

def initialize(classes)
  @classes = classes
  @allow_struct = @classes.include?('Struct')
  super()
end