Class: MAXS
- Inherits:
-
Object
- Object
- MAXS
- Defined in:
- lib/i.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.hi ⇒ Object
8 9 10 |
# File 'lib/i.rb', line 8 def self.hi puts "Hello world!" end |
Instance Method Details
#openmax ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# 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 |