Method: Psych::Visitors::RestrictedYAMLTree#accept
- Defined in:
- lib/psych/visitors/yaml_tree.rb
#accept(target) ⇒ Object
605 606 607 608 609 610 611 612 613 614 615 |
# File 'lib/psych/visitors/yaml_tree.rb', line 605 def accept target if !@aliases && @st.key?(target) raise BadAlias, "Tried to dump an aliased object" end unless Symbol === target || @permitted_classes[target.class] raise DisallowedClass.new('dump', target.class.name || target.class.inspect) end super end |