    # File lib/yard/registry_store.rb, line 164
        def save(merge = true, file = nil)
          if file && file != @file
            @file = file
            @serializer = Serializers::YardocSerializer.new(@file)
          end
          destroy unless merge

          sdb = Registry.single_object_db
          if sdb == true || sdb == nil
            @serializer.serialize(@store)
          else
            values(false).each do |object|
              @serializer.serialize(object)
            end
          end
          write_proxy_types
          write_object_types
          write_checksums
          true
        end