Class: Icomoon2Sass::Zip
Constant Summary
Constants inherited from Archive
Instance Attribute Summary
Attributes inherited from Archive
Instance Method Summary collapse
-
#initialize(zip_file) ⇒ Zip
constructor
A new instance of Zip.
Methods inherited from Archive
Constructor Details
#initialize(zip_file) ⇒ Zip
5 6 7 8 9 10 11 12 13 |
# File 'lib/icomoon2sass/zip.rb', line 5 def initialize(zip_file) @files = {} Zip::File.open(zip_file) do |z| z.each do |entry| @files[entry.name] = z.get_input_stream(entry).read if extractable? entry end end end |