module Bootsnap::CompileCache::YAML

def strict_visitor

def strict_visitor
  self::NoTagsVisitor ||= Class.new(Psych::Visitors::ToRuby) do
    def visit(target)
      if target.tag
        raise UnsupportedTags, "YAML tags are not supported: #{target.tag}"
      end
      super
    end
  end
end