class IcomoonAsWell::Unzip

Attributes

files[R]

Public Class Methods

new(path) click to toggle source
# File lib/icomoon_as_well/unzip.rb, line 6
def initialize(path)
  @files = {}
  Zip::File.open(path) do |zip|
    zip.each do |entry|
      if  entry.file?
        @files[entry.name] = entry.get_input_stream.read
      end
    end
  end
end