def to_io(package_type, traversal = :each)
      package_type.open do |package|
        package.add_directory(@initial_version)

        send(traversal) do |child|
          case child
          when File
            package.add_file(child)
          when Directory
            package.add_directory(child)
          end
        end
      end
    end
def to_io(package_type, traversal = :each)
      package_type.open do |package|
        package.add_directory(@initial_version)

        send(traversal) do |child|
          case child
          when File
            package.add_file(child)
          when Directory
            package.add_directory(child)
          end
        end
      end
    end
Returns this +Archive+ as a package of the given +package_type+

 @example
   require 'and_feathers/gzipped_tarball'

   format = AndFeathers::GzippedTarball
   AndFeathers::Archive.new('test', 16877).to_io(format)

 @see https://github.com/bcobb/and_feathers-gzipped_tarball
 @see https://github.com/bcobb/and_feathers-zip

 @param package_type [.open,#add_file,#add_directory]

 @return [StringIO]