Sha256: 4c116852d325c07ec6caa5f2a775514f00f42fe9bc8c194822e59358bd045467

Contents?: true

Size: 489 Bytes

Versions: 12

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require_relative 'xlsx_parser/workbook'

module OoxmlParser
  # Basic class for parsing xlsx
  class XlsxParser
    # Parse xlsx file
    # @param path_to_file [String] file path
    # @return [XLSXWorkbook] result of parse
    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
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ooxml_parser-0.37.1 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.37.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.36.1 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.36.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.35.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.34.2 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.34.1 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.34.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.33.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.32.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.31.0 lib/ooxml_parser/xlsx_parser.rb
ooxml_parser-0.30.0 lib/ooxml_parser/xlsx_parser.rb