module Passbook::Archive
Public Instance Methods
zip(*files)
click to toggle source
# File lib/passbook/archive.rb, line 7 def zip(*files) Zip::OutputStream.write_buffer do |zip| files.flatten.compact.each do |file| zip.put_next_entry(file.filename) && zip.write(file.content) end end end