class Zip::FileSystem::ZipFsDirIterator
:nodoc:all
def close
def close @filenames = nil end
def each(&a_proc)
def each(&a_proc) raise IOError, 'closed directory' if @filenames.nil? @filenames.each(&a_proc) end
def initialize(filenames)
def initialize(filenames) @filenames = filenames @index = 0 end
def read
def read raise IOError, 'closed directory' if @filenames.nil? @filenames[(@index += 1) - 1] end
def rewind
def rewind raise IOError, 'closed directory' if @filenames.nil? @index = 0 end
def seek(position)
def seek(position) raise IOError, 'closed directory' if @filenames.nil? @index = position end
def tell
def tell raise IOError, 'closed directory' if @filenames.nil? @index end