Class: OoxmlParser::XlsxParser

Inherits:
Object
  • Object
show all
Defined in:
lib/ooxml_parser/xlsx_parser.rb

Overview

Basic class for parsing xlsx

Class Method Summary collapse

Class Method Details

.parse_xlsx(path_to_file) ⇒ XLSXWorkbook

Parse xlsx file

Parameters:

  • path_to_file (String)

    file path

Returns:



11
12
13
14
15
16
# File 'lib/ooxml_parser/xlsx_parser.rb', line 11

def self.parse_xlsx(path_to_file)
  file = OoxmlFile.new(path_to_file)
  Parser.parse_format(file) do |yielded_file|
    XLSXWorkbook.new(unpacked_folder: yielded_file.path_to_folder).parse
  end
end