Method: JavaClass::Gems::ZipFile#entries

Defined in:
lib/javaclass/gems/zip_file.rb

#entries(&block) ⇒ Object

List the entries of this zip for the block given.



135
136
137
138
139
# File 'lib/javaclass/gems/zip_file.rb', line 135

def entries(&block)
  FILESYSTEM.foreach(@archive) do |entry|
    block.call(ZipEntry.new(entry))
  end
end