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.



60
61
62
63
64
# File 'lib/firm/serializer/yaml.rb', line 60

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