Module: Minitar::Reader::InvalidEntryStream

Defined in:
lib/minitar/reader.rb

Overview

This marks the EntryStream closed for reading without closing the actual data stream.

Instance Method Summary collapse

Instance Method Details

#closed?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/minitar/reader.rb', line 23

def closed?
  true
end

#getcObject

Raises:



15
16
17
# File 'lib/minitar/reader.rb', line 15

def getc
  raise ClosedStream
end

#readObject

Raises:



11
12
13
# File 'lib/minitar/reader.rb', line 11

def read(*)
  raise ClosedStream
end

#rewindObject

Raises:



19
20
21
# File 'lib/minitar/reader.rb', line 19

def rewind
  raise ClosedStream
end