class MAXS

Public Class Methods

hi() click to toggle source
# File lib/i.rb, line 8
def self.hi
  puts "Hello world!"
end

Public Instance Methods

openmax() click to toggle source
# File lib/i.rb, line 12
def openmax
  Zip::File.open('te.xls') do |zip_file|
    # Handle entries one by one
    zip_file.each do |entry|
      # Extract to file/directory/symlink
      puts "archivos contenidos #{entry.name}"
      ##entry.extract(dest_file)

      # Read into memory
      content = entry.get_input_stream.read
      puts content
    end

    # Find specific entry
    ##entry = zip_file.glob('*.csv').first
    ##puts entry.get_input_stream.read
    puts "esos fueron"
  end
end