Class: Gem::Package::TarReader

Class | Gem::Package::TarReader
In: | lib/rubygems/package/tar_reader.rb
Parent: | Object

TarReader reads tar files and allows iteration over their items

### Methods

close each each_entry new new rewind

### Included Modules

Gem::Package

### Classes and Modules

Class Gem::Package::TarReader::UnexpectedEOF

### Public Class methods

new(io) {|reader| ...}

Creates a new TarReader on `io` and yields it to the block, if given.

new(io)

Creates a new tar file reader on `io` which needs to respond to pos, eof?, read, getc and pos=

### Public Instance methods

close()

Close the tar file

each() {|entry| ...}

Iterates over files in the tarball yielding each entry

each_entry()

Alias for each

rewind()

NOTE: Do not call rewind during each

[Validate]