Sha256: f17f41805077bd03d8f657cb71cac68d1645b963ac23eab6185279f883f53aea
Contents?: true
Size: 565 Bytes
Versions: 12
Compression:
Stored size: 565 Bytes
Contents
# frozen_string_literal: true require_relative 'common_parser/common_data/valued_child' require_relative 'docx_parser/document_structure' module OoxmlParser # Basic class for DocxParser class DocxParser # Parse docx file # @param path_to_file [String] file path # @return [DocumentStructure] result of parse def self.parse_docx(path_to_file) file = OoxmlFile.new(path_to_file) Parser.parse_format(file) do |yielded_file| DocumentStructure.new(unpacked_folder: yielded_file.path_to_folder).parse end end end end
Version data entries
12 entries across 12 versions & 1 rubygems