Class: Warbler::ZipSupportRubyZip0_9

Inherits:
Object
  • Object
show all
Defined in:
lib/warbler/zip_support.rb

Class Method Summary collapse

Class Method Details

.create(filename, &blk) ⇒ Object



3
4
5
# File 'lib/warbler/zip_support.rb', line 3

def self.create(filename, &blk)
  Zip::ZipFile.open(filename, Zip::ZipFile::CREATE, &blk)
end

.open(filename, &blk) ⇒ Object



7
8
9
# File 'lib/warbler/zip_support.rb', line 7

def self.open(filename, &blk)
  Zip::ZipFile.open(filename, &blk)
end